0
How to find Memory Leak in AS3
New Here
,
/t5/animate-discussions/how-to-find-memory-leak-in-as3/td-p/2656717
May 04, 2010
May 04, 2010
Copy link to clipboard
Copied
Hi ,
I have created a flash game includes huge amount of memory usage . I want to find out the objects remain in the memory , Is there any way or tool through which i can find the unused objects and force GC on them ?
Regards ,
Prasad
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/animate-discussions/how-to-find-memory-leak-in-as3/m-p/2656718#M64351
May 04, 2010
May 04, 2010
Copy link to clipboard
Copied
There's De Monster Debugger: http://www.demonsterdebugger.com/
FWIW - most memory leaks I've seen are the result of using strong referenced listeners - ie:
someObject.addEventListener(Event.ENTER_FRAME, someFunction);
as opposed to:
someObject.addEventListener(Event.ENTER_FRAME, someFunction, false, 0, true);
With a game where you potentially add all kinds of objects to the screen dynamically, you really need to be careful and use weakly referenced listeners.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

