Stefan,

these issue is known. The problem with setting parent to "null" is that 
is massively slows down the final dispose on shutdown. Also setParent 
does not correctly remove the DOM node from the parent node when it is 
disposed directly afterwards.

A workaround would be to call setParent(null) only on interims disposes 
e.g. when disposing a single component, not the whole application. A 
good option would be to add a "destroy" to 0.7.x where it calls 
setParent(null) and disposes afterwards. The DOM node issue would remain 
  though. This is also API compatible to the old behavior of dispose().

What do you think?

Sebastian




[EMAIL PROTECTED] schrieb:
> Sorry to disturb you with 0.7.x stuff, but as I wrote, also 0.7.3 (and 
> 0.7.x_branch) has a huge memory leak (measured in IE 7).
>  
> After some investigation, I realized that after disposal widgets still are 
> referenced by their parent-widget (though invisble then) in the 
> _children-array.
> Thats why they are not freed at all.
> 
> Just calling setParent(null) in the destructor of Widget solves this.
> 
> Together with done fixes (after 0.7.3) in qx.util.manager.Value and the 
> qx.util.manager.MConnectedObject-mixin for the 
> Widget-class this almost solves all memory problems with 0.7.3x: 
>  
> As a comparison: 
>  
> --- 0.7.3  ---
> 5000 Labels created/added/disconnected/disposed: leaks 150MB
>  
> note: without explicit disconnect, Labels don't vanish.
> --------------
>  
> --- 0.7.x , patched destructor with setParent(null) ---
> 30.000 Labels created/added/disposed: leaks approx. 10MB
>  
> note: memory consumptions has a high deviation over time, it's not so easy 
> to measure.
> ---------
>  
>  
> As the other fixes after 0.7.3 are important too to solve the whole 
> situation is there any plan as when to label 0.7.4 ?
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to