Hi,

Just wanted to mention something I (in the comments) of one of Ted Patrick's 
blog posts.

He says that there's a known bug in Flash Player 9 where weak references were 
preventing 
objects from being garbage collected:

http://www.onflex.org/ted/2008/09/useweakreferencesboolean-false.php

>From earlier reading, I started to use weak references for when ever possible, 
>and thought 
I didn't have to worry about removing the event listeners. I upgraded to Flash 
Player 10, 
however, it still seemed like the weak refs were preventing GC (admittedly a 
newbie 
w/using the Flex Profiler).

This very last comment on this JIRA bug seems to have reached the same 
conclusion as I 
have, that the issue may not be 100% fixed in Flash Player 10:

http://bugs.adobe.com/jira/browse/FP-291

Suffice it to say, I have adopted the sage advice of others on this list and 
now always 
remove any listeners that I add (weak ref or not).

HTH,
Sunil

Reply via email to