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

Garbage Collector and memory problem

1 Answer 244 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adrián
Top achievements
Rank 1
Adrián asked on 04 Sep 2015, 09:56 AM

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.

1 Answer, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 07 Sep 2015, 10:11 AM

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
Tags
General Discussions
Asked by
Adrián
Top achievements
Rank 1
Answers by
Polya
Telerik team
Share this question
or