Nisha
Nisha

Reputation: 1439

'Out of memory exception' when processing 67000 records in reportviewer

I have an extra report with "62976" records with 71 columns. I have tried to load this report in a reportviewer control and I got "Out of Memory Exception" after several minutes. Is there any way to load this report in report viewer? I am using xtraReports of devexpress.

My code consists of a dataset that is filled with this 62976 records. I do some record manipulations using foreach for this many records and finally the output from this foreach is fed to the reportviewer. I have tried debugging and the debugger passes all the code lines without failure. Finally I see the reportviewer with the loading image running (which implies that large amount of data is being processed) and after around 60 seconds, the exception is thrown.

Things I've tried.

Clearing the temp folder Restarting visual studio Restarting my machine

Upvotes: 2

Views: 1608

Answers (1)

Krishnanunni Jeevan
Krishnanunni Jeevan

Reputation: 1759

Some of the Devexpress report controls seems to have lot of memory leak issues.We had an issue with the XtaRichEditControl and has to totally remove it from the project.However 67000 is huge number depending on your system configuration.The reports do consumes lot of resources.

You can try using a memory profiler to find out which class/object is using most memory.We used Ans memory profiler

The other option is to use WinDbg with SOS .

Upvotes: 2

Related Questions