This question is locked. New answers and comments are not allowed.
Jean Ressouche
Top achievements
Rank 1
Jean Ressouche
asked on 17 Feb 2011, 12:41 PM
Hello,
I'm creating "manually" some columns in a gridview, pretty much like that:
and i create the cell content overriding the CreateCellElement & CreateCellEditElement properties with a class derivated from the GridViewDataColumn.
Appear that the object created in the CreateCellElement seems to be not removed correctly by the garbage collector, at each repopulate of my gridview, i see the memory increasing (even with a gc.collect).
Is there a way for me to intercept the "remove" event to clear my try to clear by myself my object - or something else ?
Many thanks !!!
ps: i'm using the last sl version that - should - reduce the datatemplate memory leak issue.
I'm creating "manually" some columns in a gridview, pretty much like that:
GridViewPersoColumn gv = new GridViewPersoColumn { IsReadOnly = true, (...), Width = 200 };MyGridView.Columns.Add(gv);and i create the cell content overriding the CreateCellElement & CreateCellEditElement properties with a class derivated from the GridViewDataColumn.
Appear that the object created in the CreateCellElement seems to be not removed correctly by the garbage collector, at each repopulate of my gridview, i see the memory increasing (even with a gc.collect).
Is there a way for me to intercept the "remove" event to clear my try to clear by myself my object - or something else ?
Many thanks !!!
ps: i'm using the last sl version that - should - reduce the datatemplate memory leak issue.
7 Answers, 1 is accepted
0
Hello,
Vlad
the Telerik team
Can you clarify what's the object returned by CreateCellElement & CreateCellEditElement methods? If this is UI element do you attach any events?
Best wishes,Vlad
the Telerik team
0
Jean Ressouche
Top achievements
Rank 1
answered on 17 Feb 2011, 02:46 PM
Hello Vlad,
Thanks for you answer, the object returned is a UserControl (including inside elements standart like grid, rectangle, textbox...).
My usercontrol contain also tooltips & context menu. Nothing else special.
Thanks for you answer, the object returned is a UserControl (including inside elements standart like grid, rectangle, textbox...).
My usercontrol contain also tooltips & context menu. Nothing else special.
0
Jean Ressouche
Top achievements
Rank 1
answered on 18 Feb 2011, 02:11 PM
Hello again,
I think that my problem is the same as this one:
http://www.telerik.com/community/forums/silverlight/gridview/memory-leak-issue-with-radgridview.aspx
i'm using the version 2010.3.1314.1040.
Thanks, i'm loosing 15Mo at each repopulate, not possible to push a release to customers until fixed ^_^"'
I think that my problem is the same as this one:
http://www.telerik.com/community/forums/silverlight/gridview/memory-leak-issue-with-radgridview.aspx
i'm using the version 2010.3.1314.1040.
Thanks, i'm loosing 15Mo at each repopulate, not possible to push a release to customers until fixed ^_^"'
0
Hi,
Vlad
the Telerik team
The problem in this thread was related to our tab control - do you have such in your case?
Kind regards,Vlad
the Telerik team
0
Jean Ressouche
Top achievements
Rank 1
answered on 18 Feb 2011, 03:59 PM
Dear Vlad,
Yes, my GridView in inside a RadTabItem / RadTabControl (whois itself in a RadTabControl...)
Yes, my GridView in inside a RadTabItem / RadTabControl (whois itself in a RadTabControl...)
0
Hello Jean Ressouche,
Does in you unsubscribe from some events on unloaded event. Recently we have found out that Unloaded event is not raised consistently in such scenarios. Also, could you please check whether the problem is resolved when the context menu is removed from the user control.
In addition if possible, could you share sample project that illustrates this issue (you can attach projects by opening support ticket). This will help us identify the exact cause of the problem and provide solution that best fits in your case.
Best wishes,
Tsvyatko
the Telerik team
Does in you unsubscribe from some events on unloaded event. Recently we have found out that Unloaded event is not raised consistently in such scenarios. Also, could you please check whether the problem is resolved when the context menu is removed from the user control.
In addition if possible, could you share sample project that illustrates this issue (you can attach projects by opening support ticket). This will help us identify the exact cause of the problem and provide solution that best fits in your case.
Best wishes,
Tsvyatko
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Jean Ressouche
Top achievements
Rank 1
answered on 01 Mar 2011, 09:19 AM
Dear Telerik Team,
i have finally found my main memory leak source: the extended tooltip i'm using (http://tooltipservice.codeplex.com/) is not unloaded correctly. (For interested users: solved in future release, workaround available on the website).
I still see my memory running out slowly, but i can't see un-garbage collected element anymore within my application NameSpace.
i have finally found my main memory leak source: the extended tooltip i'm using (http://tooltipservice.codeplex.com/) is not unloaded correctly. (For interested users: solved in future release, workaround available on the website).
I still see my memory running out slowly, but i can't see un-garbage collected element anymore within my application NameSpace.
