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

Home » Public Forums » archive » widget cleanup problem
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: widget cleanup problem [message #51713 is a reply to message #51686] Tue, 05 December 2006 08:10 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Braedley writes:

> My problem comes when I try to destroy the widget. I actually do make
> it into the cleanup routine, but apparently label_base has already been
> destroyed because I get the following error:
> WIDGET_CONTROL: Invalid widget identifier: 0.
> when I try to get the uvalue. I still want the user to be able to set
> a uvalue for this compound widget, so setting the uvalue of base to
> move_info won't work. Any suggestions?

Now you are beginning to see one of the MAJOR reasons
for writing all your compound widgets as objects. :-)

But, here, just assign the CLEANUP (or even *another*
CLEANUP) to the widget that actually has the pointer.
There is no need to assign it to the compound widget
TLB if there is nothing for it to do. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: widget cleanup problem
Next Topic: Re: The opposite of David's 15lbs tome

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

Current Time: Mon Apr 27 11:08:37 PDT 2026

Total time taken to generate the page: 0.56244 seconds