Dispose method not actually freeing memory

3 posts, 0 answers
  1. Joshua
    Joshua avatar
    3 posts
    Member since:
    Jul 2011

    Posted 27 Feb 2015 Link to this post

    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. Joshua
    Joshua avatar
    3 posts
    Member since:
    Jul 2011

    Posted 27 Feb 2015 in reply to Joshua Link to this post

    I forgot to mention that I'm using version 2015.1.225.40
  3. Ivan Petrov
    Ivan Petrov avatar
    717 posts

    Posted 02 Mar 2015 Link to this post

    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.

    Ivan Petrov

    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.

Back to Top