Out of Memory Exception

Stimulsoft Reports.NET discussion
Post Reply
Wicksy
Posts: 1
Joined: Tue Apr 25, 2017 7:56 am

Out of Memory Exception

Post by Wicksy »

Hi,

I am running into an out of memory exception when attempting to render a rather large report (more than 2128 pages). I thought I had fixed this issue by using the following:

Code: Select all

StiOptions.Engine.ReportCache.AmountOfProcessedPagesForStartGCCollect = 20;
StiOptions.Engine.ReportCache.AllowGCCollect = true;
StiOptions.Engine.ReportCache.AmountOfQuickAccessPages = 50;
StiOptions.Engine.ReportCache.LimitForStartUsingCache = 100;

report.ReportCacheMode = StiReportCacheMode.On;
report.CacheAllData = true;

report.Render(true);
reportStiViewerControl.Report = report;
... but then the size of the report increased due to a data fix. And now I am back to seeing this out of memory exception. Tweaking the numbers is making little difference.

Is anyone able to help?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Out of Memory Exception

Post by Alex K. »

Hello,

Please clarify which version are you use?
Also, please check the last version.

Thank you.
Post Reply