Hi Peter,

Am 01.03.2007 um 13:20 schrieb Peter Helfer:

> I know it is not being GC'd because I use Javascript Memory  
> Validator (a nice tool), so I can see this widget still on the heap  
> after GC.

That's really a very useful tool! I played with the evaluation  
version today, and it looks quite powerful - although at $299, it's  
certainly not cheap, and it's Windows only :-(

Anyway, you have to be careful when looking at the Validator's  
output. During testing, object counts for certain objects would  
increase greatly for me, only to go down again when the garbage  
collector finally kicked in. In one case, I had to create 100000  
objects until they were collected. The garbage collector button in  
the toolbar doesn't seem to do anything ...

I specifically tested your Label code, and the labels were collected  
correctly. However, this was with 0.6.5 - it's possible, though  
unlikely, that 0.6.1 had a leak in the Label code. When in doubt,  
bring up the Label objects in the "Analyse" tab and choose  
"Referenced by" in the context menu. When there are no references,  
the object will definitely be collected at some point (whenever the  
JavaScript engine thinks it's appropriate).

Regards,

   Andreas


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to