Re: [flexcoders] Re: memory leaks and activation-objects

2010-08-31 Thread Alex Harui
I don’t like anonymous functions, nested functions or whatever you want to call function instances. Everything on the callstack is referenced by the scope-chain/activation object until the function instance can be GC’d. Once you call removeEventLIstener, then the scope-chain goes away, but

Re: [flexcoders] Re: memory leaks and activation-objects

2010-08-30 Thread Alex Harui
Could you be registering anonymous functions as event listeners and other callbacks? On 8/30/10 12:52 PM, lew.miller lew.mil...@gmail.com wrote: Thanks Alex. I don't have any simple test case indicating that they leak, I'm just struggling to understand what is causing certain leaks in a

RE: [flexcoders] Re: Memory leaks?

2009-01-16 Thread Alex Harui
Any time you load a module, its SWF gets uncompressed, parsed and then executed until the code runs that notifies the moduleloader that it is ready. SWF parsing is not nearly as efficient as EXE processing, but of course, not nearly as fast as just creating a new instance of the main class in

RE: [flexcoders] Re: Memory leaks in a asyncronic operation

2008-06-03 Thread Alex Harui
I don't know what books and other materials are out there. Note that there are filters that don't show certain classes. Maybe they are hiding the true leak From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cavi21 Sent: Tuesday, June 03,

Re: [flexcoders] Re: Memory leaks

2007-08-30 Thread Xavi Beumala
that. -- *From:* Gordon Smith *Sent:* Wednesday, August 29, 2007 12:37 PM *To:* flexcoders@yahoogroups.com *Cc:* Alex Harui *Subject:* RE: [flexcoders] Re: Memory leaks Here are the results I get when I start by doing Force GC and Capture Memory and then repeatedly do Add

RE: [flexcoders] Re: Memory leaks

2007-08-29 Thread Gordon Smith
Here are the results I get when I start by doing Force GC and Capture Memory and then repeatedly do Add Childs, Rem Childs, Force GC, Capture Memory: 4943872 6393856 6664192 6627328 6770688 6803456 6815744 6815744 6815744 6823936 6815744 There is no memory leak because continuing to add and

RE: [flexcoders] Re: Memory leaks

2007-08-29 Thread Alex Harui
Smith Sent: Wednesday, August 29, 2007 12:37 PM To: flexcoders@yahoogroups.com Cc: Alex Harui Subject: RE: [flexcoders] Re: Memory leaks Here are the results I get when I start by doing Force GC and Capture Memory and then repeatedly do Add Childs, Rem Childs, Force GC, Capture Memory