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

Memory leak in RadScheduleView when ShowCurrentTimeIndicator=true

1 Answer 66 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Grant
Top achievements
Rank 1
Grant asked on 03 Jun 2012, 02:11 AM
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();
    }
}


1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 06 Jun 2012, 12:49 PM
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 >>
Tags
ScheduleView
Asked by
Grant
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or