There is memory leak after docking any pane.

4 posts, 0 answers
  1. Alex
    Alex avatar
    5 posts
    Member since:
    Oct 2008

    Posted 15 Jun 2010 Link to this post

    I have a simple application with 3 dockable panes:
    <UserControl x:Class="SilverlightApplication1.MainPage" 
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        <Grid x:Name="LayoutRoot"
            <telerik:RadDocking> 
                <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedRight"
                    <telerik:RadPaneGroup Align="Justify"
                        <telerik:RadPane Header="Calendar" /> 
                    </telerik:RadPaneGroup> 
                    <telerik:RadPaneGroup Align="Justify"
                        <telerik:RadPane Header="Contacts" /> 
                    </telerik:RadPaneGroup> 
                    <telerik:RadPaneGroup Align="Justify"
                        <telerik:RadPane Header="Links" /> 
                    </telerik:RadPaneGroup> 
                </telerik:RadSplitContainer> 
            </telerik:RadDocking> 
        </Grid> 
    </UserControl> 

    After each docking iexplore.exe process memory increases and never decreases.
    I inspected iexplore.exe process using YourKit profiler. And noticed that every redocking results in creating new instances of RadPaneGroup, RadPane[], DragValidator, PaneHeader, RadButton etc. These instances are never garbage collected.

    Many redockings may result in great memory leak.

    P.S. There is memory leak in silverlight when using inline DataTemplates http://forums.silverlight.net/forums/p/171739/415825.aspx. Maybe this is the issue.
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 17 Jun 2010 Link to this post

    Hi Alex,

     Thank you for reporting us this problem! We will investigate it and find the source of the leak. We are aware of the leak in Silverlight and made sure that the themes of RadControls for Silverlight doesn't use inline DataTemplates.

    Sincerely yours,
    Miroslav Nedyalkov
    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
  3. DevCraft banner
  4. Adam
    Adam avatar
    4 posts
    Member since:
    Jul 2010

    Posted 12 Dec 2011 Link to this post

    Hi,

    Was this problem solved as I it seems that your latest silverlight build still does not release memory of controls when expected? We add contents to RadDock controls at runtime and the memory is not released during the whole life time of the silverlight app (even after we close
    the RadDock at it disappears from screen).

    Thanks,

    Adam
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 13 Dec 2011 Link to this post

    Hello Alex,

    We are not aware of any memory problems connected to the Docking control. The problem mentioned in this thread wasn't a memory leak in RadControls for Silverlight, but bug in the Silverlight runtime and should be solved in the latest Silverlight build. If you are still observing memory problems with the latest Silverlight, could you please prepare a sample project that reproduces the issue and send it to us. This would be of great help in searching the memory problem.

    Sincerely yours,
    Miroslav Nedyalkov
    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