Nevron Forum

ChartControl is not being released after close due to subscribed eventhandler

https://www.nevron.com/Forum/Topic12228.aspx

By Michael Krüllmann - Monday, September 25, 2017

Hello,

we are encountering a huge memory consumption when opening and closing charts repeatedly.
After closing a chart, only a part of the allocated memory is released, so the overall memory usage rises more and more
with each opening of a chart.
We did some investigation using WinDbg and found out, that even in a simple example with just creating a chart control and
closing it the chart control is not released. We saw that it is still registered to a ShutDownStarted-event (Nevron.Chart.Wpf.NChartControl.Dispatcher_ShutdownStarted(System.Object, System.EventArgs).
I attached an example with an extra text file with some information from WinDbg (Info_WinDbg.txt).
Is there any solution? What can you recommend for best cleanup?

Thank you and best regards,
Michael Krüllmann
By Nevron Support - Tuesday, September 26, 2017

Hi Michael,
Thank you for bringing this problem to our attention - we have just released a SP that fixes this issue. You can download it from our website. Let us know if you meet any problems.