Garbage Collection and Memory Leaks - simple example


Alex Harui wrote a great post regarding the techniques of detecting memory leaks using the Flex Builder memory profiler.
I found the demo he used a bit too complicated (too many objects, too many memory leaks), so I created a simpler version for demonstrating the techniques.
The idea – using the same code, once on a Person class, and once on a LeakyPerson class (which causes a memory leak).
CreateDestry/CreateDestroyLeaky – demonstrates the create/destroy scenario
Replace/ReplaceLeaky – demonstrates the replace current scenario.
Attached is a screenshot of the various outputs of the projects, and the source files as well.
 I hope you'll find it useful,
Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at