Garbage Collector and memory problem

2 posts, 0 answers
  1. Adrián
    Adrián avatar
    1 posts
    Member since:
    Aug 2015

    Posted 04 Sep 2015 Link to this post

    Hi everyone,

    I am having troubles with the memory. I am developing a usercontrol in WPF to put it in a WinCC (Siemens) application. WinCC accepts WPF controls to be putted in its forms.

    When I load my control in one of its pictures (they call pictures to any of its instances) my control gets load correctly. But when I go to another pic and come back to the pic of my control, it isn't load correctly the telerik controls.

    I have tried to put every telerik control equal null, and remove them from their parents. it isn't work:

    gridGanttView.Children.Remove(ganttView);
    ganttView = null;
    gridChart.Children.Remove(radCartesianChart);
    radCartesianChart = null;
    System.GC.Collect();
    //System.GC.WaitForFullGCComplete(); (Any of this two works)
    System.GC.WaitForPendingFinalizers();

    I have seen there are people having the same problem like here: LINK

    Any Solution? How can I step by step delete every control inside of RadGanttView and RadCartesianChart (or another ones)??

     Thanks.

  2. Polya
    Admin
    Polya avatar
    199 posts

    Posted 07 Sep 2015 Link to this post

    Hello Adrián,

    Thank you for contacting us.

    We are unaware of such issue with our RadGanttView and RadChartesianChart controls.
    Can you please provide more information regarding your scenario:
    1) Are you using other Telerik controls than the mentioned two and do you have the same issue with them?
    2) can you please specify what are these pictures - are they like a TabControl?
    3) How are the gantt and chart loaded incorrectly - what is not preserved?

    I would also like to kindly ask you to send us a sample project so we can investigate further.

    Looking forward to your reply.

    Regards,

    Polya
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top