Friday, February 22, 2008
Friday, February 22, 2008    

I was at Keith Peter's blog reading stuff and saw the localConnection thing to force gc in Flash. I then saw something interesting:
In AIR, although not in Flash, you can use
System.gc()
to trigger garbage collection. It should still be called twice in a row, however, if you want everything possible to be collected immediately.

Oliver Goldman | Adobe AIR Engineering
That's extremely useful information. It might be cool to see an actual method in AS3 that can force gc instead of using the localConnection hack
new LocalConnection().connect('foo');
new LocalConnection().connect('foo');
Very useful information to have. In AS3 and also AIR-specific cases. Nice work Grant Skinner, Keith Peters, and the AIR team.


1 Comments:

Anonymous Anonymous said...
 

“Note that according to the language reference, you can use this to trigger garbage collection in the debugger version of Flash Player:

"For the Flash Player debugger version and AIR applications only."”
 
Post comment

Links to this post:


Create a Link

gotoAndStop( topOfPage );