on 06-05-2017 8:44 PM
So Im facing an issue similar to https://archive.sap.com/discussions/thread/3884007
I have a windows service (.Net 4.5) referencing following crystal dlls..
The service is built targetting x64
CrystalDecisions.CrystalReports.Engine (version 13.0.20.2399)
CrystalDecisions.ReportSource and CrystalDecisions.Shared
On the server SAP Crystal reports runtime Engine for .NET framework 4.0 64 bit (version 13.0.20.2399) is installed.
Also installed is SAP Crystal Reports 2016 SP3 (14.2.3.2132)
The memory usage keeps increasing as the number of pdf's generated increases.
It starts off as 40K then slowly creeps to 80K after 14000 reports until the service crashes.
//Code snippet...only posting relevant lines
mRptDoc = new ReportDocument();
mRpt.Export()
I have tried following things - mRpt.Close() , mRpt.Dispose() , GC.Collect and GC.WaitForPendingFinalizers ...but nothing has worked so far.
Any suggestions?
CR for VS was never intended to be used to run that many reports.
You need to use BOE .NET SDK's and have multiple RAS services running.
No work around, CR for VS simply cannot burst that many reports in a short time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You definitely need to .Close() and .Dispose() of each report as you're finished with it. How fast are 14K reports running? Are they consecutive, running one immediately after another? Or is there some time between each report?
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.