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

Home » Public Forums » archive » Catalyst CatDestroyDefaults
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Catalyst CatDestroyDefaults [message #67095] Mon, 22 June 2009 20:19
dosfun is currently offline  dosfun
Messages: 14
Registered: February 2009
Junior Member
hi all , and especially for David,

I am a big fan of Catalyst library, the more I study Catalyst, the
more I like it.

I am trying to use CatSetDefault to set some of my system settings,
for instance:

oLang = Obj_New('languageclass')
CatSetDefault, 'language', oLang

When my application is destroyed, the CatDestroyDefaults is called
automatically, I expected this procedure will clean up all system
settings, so I did not destroy the oLang object by myself.
Unfortunately, oLang is not cleaned up, it is still in memory. Should
I have to explicitly destory the system settings in cleanup method ,
or where am I wrong?

I try to find what happens using debug mode, and know the
CatDestroyDefaults procedure finally go to the CatContainer::Cleanup
method, this method remove all child objects so they don't get
destroyed automatically, I think this is why oLang is not destroy.

I do not understand this, because we need CatDestroyDefaults to
automatically destroy all the system settings when we destroy the
application.

help!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Using windows/ linux commands within IDL scripts
Next Topic: IDL with touch screen (multitouch)

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

Current Time: Wed Oct 08 17:56:24 PDT 2025

Total time taken to generate the page: 0.00422 seconds