Memory leak in RadScheduleView when ShowCurrentTimeIndicator=true

2 posts, 0 answers
  1. Grant
    Grant avatar
    13 posts
    Member since:
    Oct 2011

    Posted 02 Jun 2012 Link to this post

    I've noticed that the RadScheduleView control will leak taking the parent tree and all its appointments with it if the ShowCurrentTimeIndicator property is set to true when the control is unloaded. The control seems to leave the dispatch timer that is setting the current time indicator timing.

    If I set this property to False during the OnClosed event of the RadWindow that is hosting the RadScheduleView then the Time Indicator timer is stopped and then control is cleaned up on GC.

    See the code below from ScheduleViewBase where stop isn't called unless this property is set back to false. 
    private static void OnShowCurrentTimePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    {
        ScheduleViewBase view = d as ScheduleViewBase;
        if (!(bool)e.NewValue)
        {
            view.timer.Stop();
        }
        else
        {
            view.timer.Start();
        }
        if (view.TimeRulerPanel != null)
        {
            view.TimeRulerPanel.InvalidateMeasure();
        }
    }


  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 06 Jun 2012 Link to this post

    Hi Grant,

    Thank you for reporting this issue.

    We were able to observe the memory leak. I have logged it in PITS - you could track its status here.
    Your Telerik points have been updated for your involvement.

    Kind regards,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft banner
Back to Top