[flexcoders] Re: Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-29 Thread Claudiu Ursica
Here is how we manage collection when it comes to Araay collection. We declare a custom class whic helds an instance of the array collection and an array for fast searching. [Bindable] public class FullGameHistorySuiteStatuses { private var _suiteStatusesArrayCollection : ArrayCollection = new

[flexcoders] Re: Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-29 Thread andrii_olefirenko
i've tried your example and didn't notice any memory leakage. anyway, why do you need to create components and remove them, and create again the same components? It looks like you made up an artificial problem for yourself :) --- In flexcoders@yahoogroups.com, e_baggg [EMAIL PROTECTED] wrote:

[flexcoders] Re: Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-29 Thread e_baggg
My original mxml was a bad example I guess. In my application, which is a Flex app that has its own windowing (exactly like Windows)...when I add and create Windows and close them, the browser CPU memory always increments (except for IE when I minimize the browswer window and memory is

[flexcoders] Re: Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-29 Thread andrii_olefirenko
i still think that you could re-use window instances. After all, how many windows a regular human being is capable to deal with at one time - 7, 12,25? You just create a pool of instances and there will be *zero* startup time for the window and *zero* memory increase. Otherwise, you would need to

RE: [flexcoders] Re: Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-29 Thread Alex Harui
Setting Image to null is not good enough. Call load(null) on the Image before removing it from the display list and releasing references to it. GC() is not deterministic. The only ways to test are to use the profiler, or run the app over thousands of actions and see if you eventually reach a

[flexcoders] Re: Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-28 Thread e_baggg
Thanks for the great advice so far...so what is the best way of freeing Images for gc()? I have a DataGrid that has an itemRenderer with a mx:Image/...if I have a dataProvider ArrayCollection (where each records has a URL that the Image uses)...does simply setting the dataProvider to null take