> will it be easy to find widgets for which it has been forgotten to
> delete/dispose them?
> When I make a new qooxdoo-0.8-app I want to be sure that all objects,
> widgets... are destroyed correctly.

Unfortunataly I can't think of any way that qooxdoo can provide a way to 
automatically 'test' whether your application destroyed all widgets that 
should have been destroyed.

This is just because noone but yourself/your app knows which widgets 
should have been destroyed and which not. As widgets can be reused (search 
for 'widget pooling') it might be even wanted that widgets are not 
destroyed after beeing made invisible.

Maybe the qooxdoo-developers include a 'getObjectCount' method in their 
'qx.core.ObjectRegistry'-class.
Then one would be able to create invariants like: 
'if I open a custom dialog than after closing it all used widgets must be 
destroyed'

With such a method you could just compare the object-count before and 
after opening/closing the dialog.
Even with widget-pooling this would make sense, because after opening the 
dialog a first time the global object count shouldn't change on subsequent 
openings/closings of the dialog.
(as a sidenote: destroyed widgets are disposed lazily as documented in the 
method-signature, but there are ways to force the dispose eagerly for such 
testing purposes and to get a correct object-count)

Alas - this method 'getObjectCount' doesn't exist yet from what I know, 
but I heard it's still 18 hours to go, before the final 0.8-freeze :D ...

PS: if you have an application which changes the page more frequently, 
then qooxdoo will dispose all of your objects on each page-change from 
what I know. So you wouldn't have to care for that.


-------------------------------------------------------------------------
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
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to