Memory leak on RadCartesianChart when used from CLR C++

2 posts, 0 answers
  1. Ron
    Ron avatar
    1 posts
    Member since:
    Jan 2020

    Posted 27 Jan Link to this post

    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 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





  2. Martin Ivanov
    Martin Ivanov avatar
    2425 posts

    Posted 30 Jan Link to this post

    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.

    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.
Back to Top