Memory Leak in DynamicLayer/InformationLayer

2 posts, 0 answers
  1. Dan
    Dan avatar
    8 posts
    Member since:
    May 2009

    Posted 01 Sep 2010 Link to this post

    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
  2. Andrey
    Andrey avatar
    1681 posts

    Posted 03 Sep 2010 Link to this post

    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:

    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
Back to Top