Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to find Memory Leak in AS3

New Here ,
May 04, 2010 May 04, 2010

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
3.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 04, 2010 May 04, 2010
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines