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

Home » Public Forums » archive » Re: In catalyst, how do I decide which object need to be destroyed by hand?
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: In catalyst, how do I decide which object need to be destroyed by hand? [message #67161 is a reply to message #67156] Thu, 02 July 2009 10:51 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dave writes:

> I read your imgwin example. There are following code:
>
> PRO ImgWin::CLEANUP
>
> @cat_pro_error_handler
>
> IF Obj_Valid(self.theImage) THEN self.theImage -> RemoveParent,
> self
> Obj_Destroy, self.theDrawWidget
> Obj_Destroy, self.theAxes
> Obj_Destroy, self._statusbar
>
> self -> TOPLEVELBASE::Cleanup
>
> self -> Report, /Completed
>
> END
>
> So I think that you destroy self.theDrawWidget, self.theAxes and
> self._statusbar by hand. Am I right?

Well, you know me. I'm pretty anal.

I don't think it is necessary. But after too many leaking
memory mistakes on this newsgroup, I do tend to destroy
everything alive when I exit a program. Follow my advice,
not my example. :-)

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Interactive Debugging Tools
Next Topic: Re: Interactive Debugging Tools

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

Current Time: Sat Oct 11 12:59:56 PDT 2025

Total time taken to generate the page: 0.72174 seconds