Some favorite site feeds aggregated locally: iPhone Development RSS   Adobe Labs RSS   Macrumors RSS

Friday, February 22, 2008

AIR Garbage Collection

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.
 
 Return to the main page
Comments:

There are currently 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."”
 
 Leave a comment