Hopefully your code is:
updateComplete=this.callLater(setVerticalScrollBarMethod);
Depending on what that code does, it might use a bunch of memory, but if it
gets freed later, it isn't a leak. The profiler will help you determine if
there really is a leak.
Alex Harui
Flex SDK Developer
Adobe
Yes, am using the same line of code.
updateComplete=this.callLater(setVerticalPosition);
private function setVerticalPosition():void{
productsGrid.verticalScrollPosition =
getVerScrollPos(productsGrid.selectedItems);//which returns an int.
}
Now when I use profiler to see the memory
Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf
Of Manu Dhanda
Sent: Monday, February 09, 2009 10:07 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid updateComplete causes lots of memory
Of Alex Harui
Sent: Monday, February 09, 2009 10:15 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid updateComplete causes lots of memory leak.
Are you saying that afterwards the memory number does not drop back down even
after you force a garbage collection using the profiler
/
Blog: http://blogs.adobe.com/aharui
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Monday, February 09, 2009 10:15 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid updateComplete causes lots of memory
leak.
Are you
...@yahoogroups.com] On Behalf
Of Manu Dhanda
Sent: Monday, February 09, 2009 11:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid updateComplete causes lots of memory leak.
Selection is fine, as you said, can be done easily.
But I do need UI and event framework
6 matches
Mail list logo