comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Call object cleanup method when IDL exits
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Call object cleanup method when IDL exits [message #85620] Thu, 22 August 2013 06:04 Go to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
Dear Folks,

I want to ensure that my object's cleanup method is called when IDL exits.
What's the right way to do this?

The issue is that my object spawns a background process that it subsequently
kills when the object is cleaned up. It appears that IDL does not automatically
call objects' cleanup methods when it shuts down normally.
Consequently, the background process can be left running.

This isn't a problem for well-written programs that explicitly call obj_destroy.
It arises all the time during interactive sessions, however.

Is there a switch that tells IDL to be extra fastidious about cleaning up objects?
Perhaps an equivalent to IDL_STARTUP that works on shutdown? Or is there some
other technique to ensure that every object on the heap is cleaned up before
IDL shuts down?

Many thanks,

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Navigating AVIRIS Images
Next Topic: avoiding "floating illegal operand" errors with /nan keyword in mean

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:33:51 PDT 2025

Total time taken to generate the page: 0.00449 seconds