Out of Memory Exception Errors

Stimulsoft Reports.NET discussion
Post Reply
damtur
Posts: 17
Joined: Wed Oct 16, 2013 9:33 pm

Out of Memory Exception Errors

Post by damtur »

We are getting the below error when exporting some of our reports to excel. We also get an 'OutOfMemoryException' error when we're running the report without exporting to excel also.

The report is big, the number of records returned is 100,000. We have switched on ReportCacheMode as well, to no avail.

We are using Stimulsoft version 2011.

What can we do to avoid getting this error?

Thanks

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Stimulsoft.Report.Export.StiExcelExportService.AddRec(Int32 com, Int32 len)
at Stimulsoft.Report.Export.StiExcelExportService.MakeWorksheetStream(StiPagesCollection pages)
at Stimulsoft.Report.Export.StiExcelExportService.MakeMainStream(StiReport report, StiPagesCollection allPages)
at Stimulsoft.Report.Export.StiExcelExportService.ExportExcel(StiReport report, Stream stream, StiExcelExportSettings settings)
at Stimulsoft.Report.Export.StiExcelExportService.ExportExcel(StiReport report, Stream stream)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Out of Memory Exception Errors

Post by Alex K. »

Hello,

We made some improvements in that direction in last versions. Please check the last release.

Thank you.
Post Reply