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

RadChart.ItemsSource leaks memory

1 Answer 96 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Dr. Hartmut Kocher
Top achievements
Rank 1
Dr. Hartmut Kocher asked on 04 Jun 2010, 01:27 PM
Hi,

I am binding the following list of dataseries to a RadChart ItemsSource to get dynamic updates:
           var chartSeries = new RadHierarchicalObservableCollection<ObservableCollection<AnalogDataPoint>>(); 
 
Because this supports the INotifyCollectionChanged event, the RadChart attaches to this event.

However, if I later close my window and set ItemsSource to null, the event handler is not removed. Therefore, the whole RadChart is still connected to the data and is not collected. (Actually, the whole view is retained because the RadChart keeps references to its parent...).

Please correct this to remove any event handler when the item source changes.

Kind regards
Dr. Hartmut Kocher

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 09 Jun 2010, 04:40 PM
Hello Dr. Hartmut Kocher,

This will be fixed in the next internal build. Thanks.

Your Telerik points were updated.

Kind regards,
Velin
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
Chart
Asked by
Dr. Hartmut Kocher
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or