A weak method closure with no backreferences can be a false positive
from the profiler.  If you are going to be loading just a few apps, the
WMCs should be ignorable.  If you're going to be loading lots of apps,
you might want to load them into an intermediary Flex app

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bick
Sent: Sunday, April 06, 2008 7:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Loading Flex apps into Flash (AS3)

 

Looking in the debugger I see 5 new WeakMethodClosure listeners on the
stage each time the Flex app is loaded. Unloading the Flex app does
not remove these.

The listeners refer to the mx.managers.FocusManager class.

Is the Flex app's FocusManager is adding listeners to the stage that
are not being removed when the app is unloaded? Are these what weak 
event listeners would look like?

One way to try and resolve this is to not have the Flex app use its
FocusManager - is this possible?

Another way is to figure out how to remove these from the stage when
the app is unloaded.

Anyone have any other suggestions?

 

Reply via email to