Approved
Last Updated: 03 Aug 2018 09:30 by ADMIN
ADMIN
Martin Ivanov
Created on: 03 Aug 2018 09:29
Category: ChartView
Type: Bug Report
0
ChartView: Memory leak when the chart is opened in a new window and then the window is closed
If you define the chart in a new window and open it from the app main window, and then close the window, the chart stays in memory. This is reproducible only in a data binding scenario - the ItemsSource of the chart series should be set to a ObservableCollection<T>. 

Additionally, the collection bound to the ItemsSource of the series should be still alive. For example, it can be defined in the view model of the main window that opens the window with the chart.

To resolve this you will need to set the ItemsSource of all chart series in the window to null.
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments