I’m working on a flash game that has developed an obvious memory leak. I do what I’m supposed to do with GC; remove all references to the object, nullify it, remove all listeners (or use weak listeners); but the leak is still present.
I’ve stumbled across this article:
http://www.andymoore.ca/2010/03/motherfucking-as3-garbage-collection/
It claims that objects that are too large will never be garbage collected. This theory fits well with my project since all of my game resides in a couple of huge MovieClips that are created and destroyed often.
Is there any merit to the claim that objects that are too large will never be garbage collected?
You can try using SWFWire Debugger to see exactly which objects aren’t being collected.
Disclaimer: This is my own project