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

There is memory leak after docking any pane.

3 Answers 65 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 15 Jun 2010, 10:32 AM
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.

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 17 Jun 2010, 02:16 PM
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
0
Adam
Top achievements
Rank 1
answered on 12 Dec 2011, 05:40 PM
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
0
Miroslav Nedyalkov
Telerik team
answered on 13 Dec 2011, 10:31 AM
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
Tags
Docking
Asked by
Alex
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Adam
Top achievements
Rank 1
Share this question
or