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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexcoder99 Sent: Wednesday, March 25, 2009 9:19 AM To: flexcoders@yahoogroups.com 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 flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, Alex Harui <aha...@...> 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: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On > Behalf Of flexcoder99 > Sent: Tuesday, March 24, 2009 11:12 AM > To: flexcoders@yahoogroups.com<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 ? >