can yu please paste the whole code. I'm afraid you had some references when
yu unload the module.

On Thu, Oct 22, 2009 at 11:10 AM, Ram <ram.200...@gmail.com> wrote:

>
> Hi Nagu,
>
> Although the above code does not contain the 3rd step, I developed a
> small POC as you said.
> 1) Create ModuleLoader everytime I load the module
> 2)Remove it from its parent container while unloading the module.
> 3) Repeat 1 for loading module again.
>
> I still see there the memory leak! I dont think Modules are really
> being released even after remove everything!
>
> Some said, if we click or type in some text fields which are not part
> of Module after unlaoding a module, it forces GC.
> Pls take a look. These JIRA tcickets DONT HAVE ANY CONCRETE SOLUTION
> from Adobe. They talk about weird workarounds which dont seem to solve
> my prob!
>
> https://bugs.adobe.com/jira/browse/SDK-18551
> https://bugs.adobe.com/jira/browse/SDK-16613
> https://bugs.adobe.com/jira/browse/SDK-12025
>
>
> Pls save me!
>
> -Ram
>
>
> On Oct 21, 6:03 pm, nagu <nagarjuna....@gmail.com> wrote:
> > 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 <nagarjuna....@gmail.com> 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 <ram.200...@gmail.com> 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 <nagarjuna....@gmail.com> 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 <ram.200...@gmail.com> 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 -- 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 flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to