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

Dispose method not actually freeing memory

2 Answers 179 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 27 Feb 2015, 06:07 PM
What I'm doing in my code is generating a lot of RadChartView objects, saving them to disk, and then trying to dispose of the chart object. If I attempt to just do a chart.Dispose() when I'm done with the chart, memory related to the series data never gets released. If I clear the series' data points myself, then memory is freed when I finally do the chart.Dispose. Rename the attachment to (.7z) to see my example project. 

2 Answers, 1 is accepted

Sort by
0
Joshua
Top achievements
Rank 1
answered on 27 Feb 2015, 06:08 PM
I forgot to mention that I'm using version 2015.1.225.40
0
Ivan Petrov
Telerik team
answered on 02 Mar 2015, 03:17 PM
Hi Joshua,

Thank you for writing.

I reviewed your project and can confirm that the memory is not released when calling the Dispose method. There are some complex references which have to be sorted properly when disposing the control and clearly these references are not handled correctly. I have added this to our Public Feedback Portal. You can track the progress if this issue, subscribe for status change alerts and add your vote/comment to it on the following link - Feedback item.

Until the issue is resolved the workaround you can apply is the one you have implemented where you clear the series before you dispose of the chart.

I have updated your Telerik Points for bringing this issue to our attention.

I hope this will be useful. Should you have further questions, I would be glad to help.

Regards,
Ivan Petrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ChartView
Asked by
Joshua
Top achievements
Rank 1
Answers by
Joshua
Top achievements
Rank 1
Ivan Petrov
Telerik team
Share this question
or