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

Memory leak on RadCartesianChart when used from CLR C++

1 Answer 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 27 Jan 2020, 03:16 PM

Hi All,

I have a big C++ MFC solution, which opens WPF dialogs with Telerik RadCartesianChart.
When the ViewModel is static (singleton) I have memory leak.
Reporting version 10.0.16.204 Q1 2016 SP1

WPF controls version 2016.1.217.45

On the attached MFC project ,When you press the OK Button, the WPF dialog is opened.
On each button pressed, the dialog shows the delta of the memory consumption on top of the dialog.
If the view model is not static or the DataSource is not connected in the XAML I don’t have any memory leaks.
However, if both condition applies the memory leak happens.

link to the solution VS2013

https://drive.google.com/file/d/1U9Bd9ox8c-IKX5lRcFOKdnVlxoSywTbY/view?usp=sharing

Thanks

Ron

 

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 30 Jan 2020, 09:15 AM

Hello Ron,

I've tested your solution but I wasn't able to reproduce the issue. I did the following:

  • Tested with versions 2016.1.217.45 and 2020.1.115.45 (latest).
  • Used a memory profiling tool to double check the memory consumption.
  • Because I don't have Visual Studio 2013, I had to re-target the Platform Toolset of the MFC application to Visual Studio 2019 (v142).

To resolve this you can try the following:

  • Re-target the Platform Toolset of the MFC application and see if this fixes the issue. It is possible that the issue is in the toolset version.
  • Upgrade to the latest version of Telerik UI for WPF. In the last two years there were a couple of memory related fixes in the chart.
  • Use a  memory profiling tool to confirm and investigate the memory issue.

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Ron
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or