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 #88124 is a reply to message #88121] Fri, 21 March 2014 11:06 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
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.
[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: Wed Oct 08 15:27:15 PDT 2025

Total time taken to generate the page: 0.00475 seconds