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 #67156] Thu, 02 July 2009 17:17 Go to previous message
Dave[4] is currently offline  Dave[4]
Messages: 38
Registered: December 2007
Member
On Jul 3, 1:51 am, David Fanning <n...@dfanning.com> wrote:
> 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.")- Hide quoted text -
>
> - Show quoted text -

Thanks very much! I have remove those "Obj_Destroy" lines, and no
leaking memory happen.
[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: Fri Oct 10 00:08:15 PDT 2025

Total time taken to generate the page: 0.23779 seconds