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

Home » Public Forums » archive » Killing Widget Objects
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Killing Widget Objects [message #88125 is a reply to message #88124] Fri, 21 March 2014 11:15 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matthew Argall writes:

> I did the exact same thing a few weeks ago. I got around it by only destroying the top level base object or widget.
>
> In the draw widget object, the only cleanup I have is
> if obj_valid(self._oTLB) then self._oTLB -> Destroy
>
> In the cleanup method for the top level base object I have
> if widget_info(self._ID, /VALID_ID) then widget_control, self._id, /DESTROY
>
> So, now the top level base object and its widget are destroyed. When the widget is destroyed, XManager kills all of its children. All of the children have a Kill_Notify procedure/method that destroy their associated object.
>
> For a while, I tried to kill the draw widget inside the draw object's cleanup method as well. This caused XManager to try to kill the draw widget twice and gave me the same error you are getting.

Well, the VERY same program works with Catalyst objects. Since I copied
Catalyst objects (nearly directly, I thought) when I made these new
objects, I'm really at a loss to explain this. I'm in the process of
looking more closely at things now.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Transparent series of images with axis using cgImage
Next Topic: -32768

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

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

Total time taken to generate the page: 0.71972 seconds