This is a migrated thread and some comments may be shown as answers.

Memory leak with RadTreeView

2 Answers 100 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 06 Jan 2011, 11:23 AM
Hi,

When I changed my RadTreeView to multiselect mode I found that unless I cleared the selection before removing nodes from the tree it held onto references to the classes it was bound to. I used WinDbg to look at the memory, below is the end of the !gcroot showing the path to a class that should be ready for garbage collection. I think the suspicious line is "059d7dd0(Telerik.Windows.Controls.SelectionChanger`1[[System.Object, mscorlib]])->".

Are you aware of any such issues with the RadTreeView in the Q3 2010 release?

Any info appreciated,

Cheers,

James Clarke

  05ac4ba4(Ericsson.nCompassControl.Silverlight.VpcInterface.Views.ParamPage)->
  05a1a7c8(System.Windows.Controls.Grid)->
  05a50214(Ericsson.nCompassControl.Silverlight.VpcInterface.Views.MainPage)->
  059d522c(Telerik.Windows.Controls.RadTreeView)->
  059d7dd0(Telerik.Windows.Controls.SelectionChanger`1[[System.Object, mscorlib]])->
  059cdefc(System.Collections.Generic.List`1[[System.Object, mscorlib]])->
  0c2db760(System.Object[])->
  0c2acbc8(Ericsson.nCompassControl.Silverlight.VpcInterface.ViewModels.TreeNode)->
  0c2abe58(Ericsson.nCompassControl.Silverlight.VpcInterface.ViewModels.TreeNode)->
  0c2abf30(Ericsson.nCompassControl.Silverlight.VpcInterface.Models.Ice4CeCardResourceModel)->
  0c2abf58(System.Collections.Generic.Dictionary`2[[Ericsson.nCompassControl.Silverlight.VpcInterface.Models.Resource, VpcUserInterface],[Ericsson.nCompassControl.Silverlight.VpcInterface.Models.DataNode, VpcUserInterface]])->
  0c2ac05c(System.Collections.Generic.Dictionary`2+Entry[[Ericsson.nCompassControl.Silverlight.VpcInterface.Models.Resource, VpcUserInterface],[Ericsson.nCompassControl.Silverlight.VpcInterface.Models.DataNode, VpcUserInterface]][])->
  0c1884c4(Ericsson.nCompassControl.Silverlight.VpcInterface.Models.DataNode)->
  068d24c4(Ericsson.nCompassControl.Silverlight.VpcInterface.Models.XmlDataModel)

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 11 Jan 2011, 02:46 PM
Hello James,

We are aware that in some cases the selected items collection is not updated. However I couldn't find that issue in the public issue tracking system so I logged it. You can vote for the fix and track its status via this link: http://www.telerik.com/support/pits.aspx#/public/silverlight/4586 .

Also, I updated your Telerik points (+1000).

Regards,
Hristo
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
James
Top achievements
Rank 1
answered on 11 Jan 2011, 02:53 PM
OK thanks, I will go and vote for that...
Tags
TreeView
Asked by
James
Top achievements
Rank 1
Answers by
Hristo
Telerik team
James
Top achievements
Rank 1
Share this question
or