Hi Monika,

your destruct function is correct, you just declared it in the wrong 
place: It must be on the same level as the members section, not inside it.


Regards,
Daniel

[email protected] schrieb:
>  
> Hi All
>  
> I am still experiencing some problems with memory management. Please 
> have a look at the simple code below:
>  
>  
> qx.Class.define("mytest.Application",
> {
>   extend : qx.application.Standalone,
>  
>   members :
>   {
>  
>         __mainContainer : *null*,         
>     main : *function*()
>     {
>       *this*.base(arguments);
>  
>       *if* (qx.core.Variant.isSet("qx.debug", "on"))
>       {
>         qx.log.appender.Native;
>         qx.log.appender.Console;
>       }
>  
>       *this*.__mainContainer = *new* qx.ui.container.Composite();
>  
>     },
>         destruct : *function*()
>         {
>                 *this*._disposeObjects("__mainContainer");
>         }  
>   }
> });
>  
> On the firebug console I am calling qx.core.ObjectRegistry.shutdown(); 
> and I am receiving following message:
>  
> Missing destruct definition for '__mainContainer' in 
> mytest.Application[undefined]: qx.ui.container.Composite[undefined]
>  
> I have no idea why this is happening, I thought that is the correct 
> usage of dispose function.
>  
> S pozdravem / Best regards,
>  
> *Monika Falk*, Software Specialist
>  
>  
>  
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge  
> This is your chance to win up to $100,000 in prizes! For a limited time, 
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize  
> details at: http://p.sf.net/sfu/Challenge
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to