naveen
naveen

Reputation: 1451

Flash Touch Screen Application - Memory Leak

have developed a touch screen stand alone application. The interactive is currently running 10 - 13 hours per day. If the user interacts with interactive the memory level is going on increasing. The interactive has five screens while travelling through each screen I have removed the movieclip, assets, listener's and I set objects to null. Yet the memory level keep increasing.

Also I have used third party tool "gskinner" to solve this problem, It improves the result even though some memory leakage is there.

Please help me, thanks in advance.

Upvotes: 1

Views: 514

Answers (2)

Amy Blankenship
Amy Blankenship

Reputation: 6961

Also, check for setTimeout() and dictionaries, as these can cause leaks as well if not used properly.

Upvotes: 1

Daniel
Daniel

Reputation: 35684

Your best results will come from writing the code in a way that elements are properly garbage collected on removal. That means removing all the objects, listeners and MovieClips/Sprites within that are no longer used.

When I'm trying to get this stuff done quickly, I've been using casalib's CasaMovieClip and CasaSprite instead of regular MovieClips and Sprites. The reason is that they have the destroy() functions as well as some other functions that help you garbage collect easily.

But the best advice I can give is to read up on garbage collection. Grant Skinner's blog is a great place to start.

Upvotes: 2

Related Questions