SNS | SNG
AS3.0 Garbage Collection
두루물
2011. 6. 17. 12:11
AS3.0 Garbage Collection
Here is an unsupported way to force garbage collection from GSkinner.
try {
new LocalConnection().connect('foo');
new LocalConnection().connect('foo');
} catch (e:*) {}
// the GC will perform a full mark/sweep on the second call.
http://stackoverflow.com/questions/709365/how-do-i-delete-gc-an-object-in-actionscript-3
Force Garbage Collection (Unofficial method)
http://gskinner.com/blog/archives/2006/08/as3_resource_ma_2.html