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

Home » Public Forums » archive » Cleanup routines
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Cleanup routines [message #8827] Fri, 25 April 1997 00:00
daffer is currently offline  daffer
Messages: 9
Registered: October 1996
Junior Member
Hello all;

I just wanted a confirmation on a point. Is it true that by the time
a cleanup routine specified by the 'cleanup' keyword to xmanager is
called, the widget is already destroyed? Therefore, you can't store
stuff like handle ids in any info structure residing in the user value
of the top level widget since it won't be there for your cleanup
routine to free. Seems like one is forced to use commons.

Does the 'kill_notify' keyword to widget_base work differently? Not that I
want to use it, since it's ignored in routines managed by Xmanager.

Thanks
William Daffer
daffer@rainy.jpl.nasa.gov

--
William Daffer
daffer@primenet.com
Re: Cleanup routines [message #8829 is a reply to message #8827] Fri, 25 April 1997 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
William Daffer writes:

> I just wanted a confirmation on a point. Is it true that by the time
> a cleanup routine specified by the 'cleanup' keyword to xmanager is
> called, the widget is already destroyed? Therefore, you can't store
> stuff like handle ids in any info structure residing in the user value
> of the top level widget since it won't be there for your cleanup
> routine to free. Seems like one is forced to use commons.

No, to quote Billy Crystal in the Prince's Bride, the TLB is just
"mostly dead." In fact, the only thing you can really do to it is
suck that info structure out of it. Presumably the information in
the info structure is what you need to clean up after yourself.

> Does the 'kill_notify' keyword to widget_base work differently? Not that I
> want to use it, since it's ignored in routines managed by Xmanager.

The KILL_NOTIFY keyword works exactly the same. Just don't use
it on widgets that have been registered with the XMANAGER
routine. I often use it with the top-level bases of my separated
graphics windows.

BTW, I don't thing the KILL_NOTIFY keyword is ignored when it is
used with widgets directly registered with XMANAGER. I think it crashes
your IDL session! (Or at least it used to on some machines.) :-)

Cheers!

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
Customizable IDL Programming Courses
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Ph.D (medical imaging) job required
Next Topic: Creating IDL Executable Files

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

Current Time: Fri Oct 10 11:06:20 PDT 2025

Total time taken to generate the page: 0.72210 seconds