Hi Keith, This test is not only about GC of the timer, more about the stage click handler.
Hi Rich, Your midification changed the situation of the original one. Infact, i'm just very surprised that the click handler is always keep alive, let us analyse here: 1. Timer running, but the anonymous timer handler function is added by weak reference, so the anonymous handler function should be garbage collected. 2. Even that timer handler weak reference has bug, but after 10 times timer tick, the timer will lose reference, so timer hand its handler should be all garbage collected. 3. About the h.handler, we can guess, becuase the anonymous timer handler referenced it, so if the anonymous timer handler is garbage collected, it will be garbage collected too. But it is not for ever. So we can guess, even after 10 times timer tick, the anonymous timer handler function will not be garbage collected, so the stage click handler h.handlerwill not, but why? There's no any reference to the timer, and the timer is stopped, and same time the anonymous timer handler is even weak referenced, no can help it to be collected? -- iiley AsWing http://www.aswing.org Personal http://www.iiley.com
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
