you have not followed the third step i think
if(_moduleLoader!=null){
removeChild(_moduleLoader);
_moduleLoader=null;
System.gc();
}
_moduleLoader = new ModuleLoader();
_moduleLoader.url = "Module1.swf";
addChild(_moduleLoader);
On Oct 20, 11:05 pm, nagu <[email protected]> wrote:
> you have and followed the third step i think
>
> if(_moduleLoader!=null){
> removeChild(_moduleLoader);
> _moduleLoader=null;
> System.gc();}
>
> _moduleLoader = new ModuleLoader();
> _moduleLoader.url = "Module1.swf";
> addChild(_moduleLoader);
>
> On Oct 19, 6:36 pm, Ram <[email protected]> wrote:
>
> > Hi Nagu,
>
> > Thanks for your comments. However, I used below code to get my module
> > loaded.
> > _moduleLoader = new ModuleLoader();
> > _moduleLoader.url = "Module1.swf";
> > addChild(_moduleLoader);
>
> > My Module does not contain anything except <mx:Button ..... />
>
> > Even after doing the steps you said, I dont see any improvements!
> > Not only my app but every app, shown on net, which uses ModuleLoader
> > has this issue. :(
>
> > Please help me!
>
> > Thanks,
> > R
>
> > On Oct 19, 5:27 pm, nagu <[email protected]> wrote:
>
> > > Hi,
> > > Normally the reasons for crashing flash player would be due to
> > > infinite loop or continues creation of display objects using a some
> > > loop functionality so avoid infinite loop.
> > > for loading modules you have no other option.
>
> > > 1.its better you create the object of the module programmatically
> > > eg:var mo:ModuleLoader=new ModuleLoader();
> > > 2. and add it to one conatiner which fits the displayobject.
> > > 3.and when ever you are removing, remove it from display and call gc
> > > ();
> > > 4.and then create new object like step one;
>
> > > this would work....
>
> > > On Oct 19, 12:59 pm, Ram <[email protected]> wrote:
>
> > > > Hi All,
>
> > > > I used ModuleLoader tag to load and unload my modules. Each module is
> > > > a very simple file and does not have any events etc.
>
> > > > When I load and unload modules continuoysly on IE, the memory
> > > > utilization goes upto 70% and the size consumed by application crosses
> > > > 1GB. All of the sudden, IE crashes and application gets closed!
>
> > > > I used below code to unload the module.
>
> > > > _moduleLoader.unloadModule();
> > > > _moduleLoader.url = null;
> > > > _moduleLoader = null;
> > > > System.gc();
>
> > > > 1) Are there alternatives to ModuleLoader? I tried ModuleManager, no
> > > > luck!
> > > > 2) Is there any way I can get memory allocated to a module back?
> > > > 3) Should I make any customizations to ModuleLoader to release the
> > > > memory?
>
> > > > We have already developed a product and have schduled release dates
> > > > now clients are on top of me and want me to solve this issue though
> > > > this is player bug.
>
> > > > ANy immediate help is highly appreciated.
>
> > > > Thanks,
> > > > R- Hide quoted text -
>
> > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---