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,
-Ilan
Thank you for your interest!
We will contact you as soon as possible.
We will contact you as soon as possible.