Problem with cache and large reports
Posted: Thu Oct 11, 2007 2:12 am
Hi y'all,
My report may have several thousand pages with text and images, so I enabled the cache function to reduce memory consumption.
This is a few lines of code to show what I did:
Stimulsoft.Report.StiOptions.Export.Pdf.ReduceFontFileSize = true;
ReportCacheMode = StiReportCacheMode.On;
StiOptions.Engine.ReportCache.LimitForStartUsingCache = 100;
StiOptions.Engine.ReportCache.CachePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
RegData(mDataSet);
Compile();
Dictionary.ImportXMLSchema(mDs);
Dictionary.Synchronize();
Render(false);
When some 150 pages are rendered, this error is thrown:
The process cannot access the file 'C:\Documents and Settings\kejo\My Documents\StimulsoftReportsCache\3c65008ea754432eb72edb9f18eb2ca5\be9e213ee12c46b1bdf031b230e0eef3.mch' because it is being used by another process.
Can I do anything to avoid the problem?
We use version 2007.3.0.0 from the patch SR_2007.09.24_R2005.zip.
Regards,
Kenneth Jonsson
My report may have several thousand pages with text and images, so I enabled the cache function to reduce memory consumption.
This is a few lines of code to show what I did:
Stimulsoft.Report.StiOptions.Export.Pdf.ReduceFontFileSize = true;
ReportCacheMode = StiReportCacheMode.On;
StiOptions.Engine.ReportCache.LimitForStartUsingCache = 100;
StiOptions.Engine.ReportCache.CachePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
RegData(mDataSet);
Compile();
Dictionary.ImportXMLSchema(mDs);
Dictionary.Synchronize();
Render(false);
When some 150 pages are rendered, this error is thrown:
The process cannot access the file 'C:\Documents and Settings\kejo\My Documents\StimulsoftReportsCache\3c65008ea754432eb72edb9f18eb2ca5\be9e213ee12c46b1bdf031b230e0eef3.mch' because it is being used by another process.
Can I do anything to avoid the problem?
We use version 2007.3.0.0 from the patch SR_2007.09.24_R2005.zip.
Regards,
Kenneth Jonsson