Hi,
Thanks for quick response.
Below is my App code.
private function load():void
{
if (!_moduleLoader)
{
_moduleLoader = new ModuleLoader();
_moduleLoader.url = "Module1.swf";
addChild(_moduleLoader);
_moduleLoader.percentHeight = 100;
_moduleLoader.percentWidth = 100;
_moduleLoader.y = hbox.y+ 50;
_moduleLoader.loadModule();
}
}
private function unload():void
{
if (_moduleLoader)
{
_moduleLoader.unloadModule();
_moduleLoader.unloadModule();
_moduleLoader.url = null;
_moduleLoader = null;
System.gc();
}
}
Here is the module code.
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="
http://www.adobe.com/2006/mxml" layout="absolute"
width="100%" height="100%">
<mx:RichTextEditor title="Title" width="349" height="249" x="457"
y="10"/>
<mx:DateChooser x="446.5" y="302"/>
</mx:Module>
I dont think there is any such events or any hard references in the
module. If I run this app on IE7, FP 10, Flex SDK 3.4, the memory leak
happens :(
I am digging into google but could find nothing!
Pls help me.
Regards,
Ram
On Oct 19, 10:48 pm, Jitendra Jain <
warriorofheavens...@gmail.com>
wrote:
> Hi
>
> You have to set the events as weak references. When yu addEventListener, yu
> have to make sure to remove those event listeners using removeEventListener
> and then nullify the object. This way your object will get garbage
> collected. Otherwise the memory will be increased every time. Please read
> about how to create weak references to the events. Be careful while using
> tab Navigator as in every tab there would be living objects. So when any one
> clicks any tab, try to preserve the state of the tab. Hope this will be
> helpful.. It helped me a lot..
>
> On Mon, Oct 19, 2009 at 9:52 PM, Tunde Famakinwa
> <
tunde.famaki...@gmail.com>wrote:
> > Blog:
http://dukefama.wordpress.com- Hide quoted text -