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

Out of Memory

3 Answers 199 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 25 Nov 2010, 05:44 PM
Hi,

I am using Q2 2010 SP1 Winforms and am getting out of memory exceptions in a simple grid app bound to an IList<>.

A timer fires every 10 seconds, reloads the IList<> and rebinds it to the grid as below:

 

 

radGridView1.DataSource =

null;

 

radGridView1.DataSource = m_Deals;

I was assuming that setting the DataSource to null would clear the grid of data before each reload.

Depending on how much data is there, after a certain time I get an Out of Memory exception.

Can you advise the best way to prevent this on periodic reloads of the Grid ?

Martin

3 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 25 Nov 2010, 06:18 PM
hello,

we were also getting out of memory errors sometimes, but in my view this is probably nothing to do with the Telerik products. I advise first of all using a good memory profiler such as ANTS Memory Profiler to find the issues.

In our case, there were some event handlers that were preventing the GC from collecting.

If you need any help, let me know.
Richard
0
Accepted
Jack
Telerik team
answered on 30 Nov 2010, 02:54 PM
Hi Martin,

Thank you for contacting us. 

Despite the fact this is a common case and it is covered by our QA cycle I did some tests and was not able to reproduce it. Therefore, I would kindly ask you to open a new ticket and send me your application. This will allow me to investigate the case further.

Thank you for your cooperation. I am looking forward to your response.

Sincerely yours,
Jack
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
0
Martin
Top achievements
Rank 1
answered on 01 Dec 2010, 01:58 PM
Hi, I think I will mark this thread as closed as we discovered a leak in the Oracle.DataAccess DLL that appeared to be the cause of the issue. Apologies for assuming initially this was a leak in th grid control.
Tags
GridView
Asked by
Martin
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Jack
Telerik team
Martin
Top achievements
Rank 1
Share this question
or