After running GC there are 9 references to Panel_A:

1> mx.binding:Binding
2> mx.core.UIComponentDescriptor
3> Function
4> Panel_A (circular reference)
5> mx.core.UIComponentDescriptor
6> mx.containers.utilityClasses.BoxLayout
7> Function
8> Function
9> mx.core.ContainerRawChildrenList

Your point about "player can hang onto last focused thing" makes sense because 
I see similar behaviour with pop-ups too.

As soon as I type in TextInput field in the pop-up, pop-up is not GCd after 
closing.




--- In [email protected], Alex Harui <aha...@...> wrote:
>
> What does the profiler show?  Sometimes the player can hang onto last focused 
> thing.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
> 
> From: [email protected] [mailto:[email protected]] On 
> Behalf Of flexcoder99
> Sent: Wednesday, March 25, 2009 9:19 AM
> To: [email protected]
> Subject: [flexcoders] Re: ItemEditors Memory Leak
> 
> 
> I tried that. No change.
> 
> One other obervation:
> no matter how many times I repeat this test case:
> 
> "going to panel_A -> adding a row to DataGrid -> editing a cell -> goto 
> Panel_B -> run GC"
> 
> there is only one instance of Panel_A and its DataGrid in LiveObjects view. 
> Instance count did not increase each time.
> 
> --- In [email protected]<mailto:flexcoders%40yahoogroups.com>, Alex 
> Harui <aharui@> wrote:
> >
> > Set focus somewhere else. Use the profiler to see what else is hanging on
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.<http://www.adobe.com/>
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: [email protected]<mailto:flexcoders%40yahoogroups.com> 
> > [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com>] On 
> > Behalf Of flexcoder99
> > Sent: Tuesday, March 24, 2009 11:12 AM
> > To: [email protected]<mailto:flexcoders%40yahoogroups.com>
> > Subject: [flexcoders] ItemEditors Memory Leak
> >
> >
> > I have two panels Panel_A and Panel_B (using tree control to navigate).
> > Both these panels have DataGrid in them.
> > DataGrid has a "Add row" context menu.
> >
> > Scenario WITHOUT Memory leak:
> > Go to Panel_A
> > Add an empty row to the grid
> > Go to Panel_B
> > Run GC.....Panel_A and its grid are GCd
> >
> > Scenario WITH Memory leak:
> > Go to Panel_A
> > Add an empty row to the grid
> > Edit a cell
> > Go to Panel_B
> > Run GC.....Panel_A and its grid are NOT GCd
> >
> > This led me to think that ItemEditors are causing memory leak.
> > Any ideas on how I can avoid this ?
> >
>


Reply via email to