I have an event assigned to events of the RadTreeView with the following statements:
Dynamically, every ~30 seconds, the RadTreeView gets a clear command:
and after the clear command is repopulated with ~ 100-150 radtreeviewitems.
Ever since I've added this to my silverlight project, I've experienced a memory leak of around 1-3MB every 30 seconds when this occurs. What do I need to manually unhook/remove to avoid the memory leak?
Thanks in advance!
Tom
Edit: removing the control fixes the leak problem.
Also: 1-3MB is not constant - it varies and sometimes looks like it is negative but if graphed, is a slow rise of memory usage.
Me.RadTreeView1.[AddHandler](Telerik.Windows.Controls.RadTreeViewItem.SelectedEvent, New RoutedEventHandler(AddressOf OnMenuItemClicked)) |
Me.RadTreeView1.[AddHandler](Telerik.Windows.Controls.RadTreeViewItem.CheckedEvent, New RoutedEventHandler(AddressOf OnCheckedChanged)) |
Me.RadTreeView1.[AddHandler](Telerik.Windows.Controls.RadTreeViewItem.UncheckedEvent, New RoutedEventHandler(AddressOf OnCheckedChanged)) |
Dynamically, every ~30 seconds, the RadTreeView gets a clear command:
RadTreeView1.Items.Clear() |
Ever since I've added this to my silverlight project, I've experienced a memory leak of around 1-3MB every 30 seconds when this occurs. What do I need to manually unhook/remove to avoid the memory leak?
Thanks in advance!
Tom
Edit: removing the control fixes the leak problem.
Also: 1-3MB is not constant - it varies and sometimes looks like it is negative but if graphed, is a slow rise of memory usage.