Skip to main content
Participating Frequently
Jun 30, 2010 8:16 PM UTC
Question

ParsleyModuleInfoProxy memory leak

Whenever you create a module using the Cairngorm Module 0.9 library, a ParsleyModuleInfoProxy object is created that is never garbage collected since there are hard references to the Parsley Library. Here is a screenshot of a couple of those paths

http://skitch.com/jeffknight/dk15h/flash-profile-cairngorm-parsley

The module is being cleaned up correctly when the s:Window is closed, however these proxies stick around. I am using Parsley 2.2.2 for Flex 4

This topic is closed to new replies. Start a new post to keep the conversation going.

7 replies

SpecialKAuthor
Participating Frequently
Jul 2, 2010 6:35 PM UTC

When will we see the next point release of the Module Library with these fixes included?

Translate
Participating Frequently
Jul 2, 2010 6:58 PM UTC

Depends on feedback, maybe next week.

Translate
SpecialKAuthor
Participating Frequently
Jul 2, 2010 7:43 PM UTC

Excellent. We are prepping to push a release to 1 million+ users which will be making extensive use of this library in about the same timeframe.

Translate
SpecialKAuthor
Participating Frequently
Jun 30, 2010 8:49 PM UTC

Update: this seems to be related to ParsleyModuleManager.getModule(). Whenever you call this function, it creates a ParsleyModuleInfoProxy object that it pushes into  the ParsleyModuleManager.infos array. This object is then never removed.

Translate
Participating Frequently
Jul 1, 2010 8:21 PM UTC

You're correct, that's a bug. I've filed it here. Also, note we face another issue around styles with the module library at the moment. Let us know if you have ideas for a fix. Feel free to post to the forum or submit a fix.

Translate
Participating Frequently
Jul 2, 2010 5:24 PM UTC

The styling issue is fixed, the memory leak should be fixed with this:

http://forums.adobe.com/thread/672574?tstart=0

Let me know if you still see the leak, I've not tested it yet.

Translate