Skip to main content
Participant
May 4, 2010
Question

How to find Memory Leak in AS3

  • May 4, 2010
  • 1 reply
  • 3873 views

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

This topic has been closed for replies.

1 reply

May 4, 2010

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.