AS3: why is this happening?
Posted
by Bin Chen
on Stack Overflow
See other posts from Stack Overflow
or by Bin Chen
Published on 2010-03-31T14:47:44Z
Indexed on
2010/03/31
14:53 UTC
Read the original article
Hit count: 159
actionscript
|garbage-collection
Hi, I just encounter a strange problem:
var a:ClassA = new ClassA;
var b:ClassA = a;
The program keeps running sometime, the a = null, b = null.
The program is a complex one, I am sure that no part will touch a, and b. My question is, will the runtime(garbage collector) to collect the memory of "a" and then assign a and b to null?
I am confused, thanks!
© Stack Overflow or respective owner