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)
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)