That is however a corner case, and although I've deleted my experiment, it's pretty easy to show that weak event listeners do get collected most of the time.
On Thu, Jan 8, 2009 at 6:53 AM, sunild999999 <sunilbd...@gmail.com> wrote: > 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 > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: j...@gfunk007.com :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk