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

Memory Leak in DynamicLayer/InformationLayer

1 Answer 50 Views
Map
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 01 Sep 2010, 05:35 PM
I've been trying to track down what was keeping one of my controls in memory after navigating away from the page and I believe I 'have isolated it to this:

DynamicLayer inherits from InformationLayer which uses your Telerik.Windows.Controls.FrameworkElementExtensions's RegisterForNotifications method.

This method creates a 'pinned'/effectively static attached dependancy property, and then registers a class level (not static) propertychanged event handler (InformationLayer's VisibilityPropertyChanged)
Becuase of this event handler, the DynamicLayer (and hence that Map its associated with and all upstream controls in its tree) are never garbage collected.

I cannot seem to find away to remove it through in inheritence or otherwise since everything is private and that dependency properties name is random..

We are using 2010.2.812.1040

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 03 Sep 2010, 12:41 PM
Hello Dan,

Thank you for the feedback.
We will research into the problem to avoid it in future releases.
You can check when the fix will be available using the following link:
http://www.telerik.com/support/pits.aspx#/public/silverlight/2758

All the best,
Andrey Murzov
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
Map
Asked by
Dan
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or