Laan's steps..

Feed Rss

as3 强制垃圾回收

10.28.2008, flash, by .

A very important thing to understand about the Garbage Collector in FP9 is that it’s operations are deferred. Your objects will not be removed immediately when all active references are deleted, instead they will be removed at some indeterminate time in the future. The GC uses a set of heuristics that look at RAM allocation and the size of the memory stack to determine when to run. As a developer, you must accept that fact that you will have no way of knowing when your inactive objects will get deallocated. You must also be aware that inactive objects will continue to execute indefinitely -until the GC deallocates it, so code will keep running.

try {
new LocalConnection().connect(‘lcname’);
new LocalConnection().connect(‘lcname’);
} catch (e:Error) {




电子邮件地址不会被公开。 必填项已用 * 标注


您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>