RadTreeView Clear Memory Leak

4 posts, 0 answers
  1. Thomas Kroll
    Thomas Kroll avatar
    9 posts
    Member since:
    Jan 2009

    Posted 01 Feb 2010 Link to this post

    I have an event assigned to events of the RadTreeView with the following statements:
    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:

    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!


    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.
  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 02 Feb 2010 Link to this post

    Hi Thomas Kroll,

    Unfortunately this is a problem in the Silverlight runtime. Microsoft is aware of it and it will be fixed with SL4.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. NS
    NS avatar
    189 posts
    Member since:
    Jan 2007

    Posted 18 Mar 2010 Link to this post

    I also encounter this problem.

    I have a Radwindow containing a Hierarchical treeview that is automatically expanded.
    There is a checkbox on each level.

    Every time the radwindow is opened, and the ItemsSource of the treeview is set I see the memory leak.

    Is there any creative workaround to get some sort of control (not the treeview) that would allow to do this ?

  4. Miroslav
    Miroslav avatar
    922 posts

    Posted 23 Mar 2010 Link to this post

    Hello NS,

    This is a video of how we demonstrate the unmanaged memory leak:


    We cannot be certain that your case is identical. If you suspect that there is a memory leak and you can send us a sample project, we will be happy to investigate it.

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top