Archive

Archive for the ‘Flashbuilder’ Category

Garbage Collection Strategy Reiterated

November 7, 2011 1 comment

A new article was recently published on adobe’s devnet providing another recap of how memory is managed by Flash. I wanted to reiterate the importance of diligently clearing the stack memory of references to the heap memory in order to minimize the work of the collector in the Mark and Sweep phase.

You, as the developer, can optimize your code by helping the Mark and Sweep phases of garbage collection occur less often. By keeping your stack references cleared of objects on the heap, the zero count table algorithm can clean up the memory before mark and sweep has to occur.

Workspace in use or Cannot be Created

September 23, 2011 Leave a comment

If you close FlashBuilder and it doesn’t shut down correctly, sometimes a .lock file will be left in the .metadata directory of your workspace.

If you try and restart FB with the .lock file present, you will get an error message about the workspace being in use. Either make sure the java program is killed or remove the lock file manually in order to reload FB.

This seems to happen to me every time I shut down with the latest version ]: