>I looked at my code again just now and noticed that there is something
strange going on here. I my example if you use the anonymous function as the
timer handler, >the click event NEVER gets GCed. Yet in my example, the two
events have no relation to each other. It is almost like the anonymous
function lives in the event system >and because it can't be GCed all events
can't (by weak reference at least). This seems very wrong, and hopefully I
am just misunderstanding something.
>Yeah, Steve, you found what i was wondering.

I think Rich Shupe's point is not right, anonymous function of course can be
collected if it is not referenced. Try to run my test code in my third post,
it is a Timer never stops, but the tick trace will stop, so it prove that
the ano function is 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

Reply via email to