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

GridView memory leak problem

0 Answers 289 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hajun
Top achievements
Rank 1
Hajun asked on 05 Oct 2018, 09:01 AM

Hi. I'm using Telerik UI for WinForms Q3 2014(v2014.3.1104.40)

I have a problem about memory leak between creating and disposing RadGridView.

I already have searched many threads, but I coudn't find the answer.

So I make a small test project to test the memory leak.

 

In image files, one tb(RadGridView) is just created. Not includes data binding or any columns/rows.

Just empty thing.

And using 2 buttons, I create and remove tb repeatly.

(In removing process,

tb.controls.Dispose(), tb.Dispose(), tb = null, even GC.Collect() are performed.)

 

However, memory leak is increasing more and more.

I tested using datagridview in C# basic control and it doesn't make a leak.

 

If I did a mistake, tell me what's wrong.

Need a solution to prove this case.

Best regards.

 

 

img01.png = tb is Dock.Left. And 2 buttons for disposing tb, creating tb.

img02.png = source code of remove/create button event.

 

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Hajun
Top achievements
Rank 1
Share this question
or