on 03-02-2018 10:18 AM
Hi,
Context :
Server : Windows Server 2012 (IIS)
Version : SAP CrystalReport 13 SP 22
Issue :
We have a problem when creating dynamicaly reports with multi-threading (no viewer). We generate PDF with ExportToStream on a IIS Web site. But after generating a lot of report, the application pool crash with the error :
Unhandled exception at 0x000007FFF6845685 (ntdll.dll) in 4- XXXXXXXXXXXXXXXX.dmp: 0xC0000005: Access violation reading location 0x0000000F00EF00C8.
When we analyzed the crash dump, we saw 2 threads on :
Class : CrystalDecisions.ReportSource.EromReportSourceBase
Method : Stream ExportToStream(ExportRequestContext reqContext)
Line : ISAResultInfo saResultInfo = (ISAResultInfo) scrReportSource.Export(pExportOptions, pRequestContext);
When we try to go from multithread to monothread and generate sequentially the reports, we had the same problem. We had again 2 threads blocked on this command.
The reports are closed, disposed and the datasource is set to null when the report is generated.
We searched for simalary issues on this forums (and other) and I tried theirs solutions, but the problems still occurs.
At first we runned on SAP Crystal Report 13 SP 12, and when we viewed the release note of the next Service Pack, we updated the Crystal Runtime on the server. We noticed an memory leak improvement, but the exception still occurs.
I can send crash dump if necessary.
Regards,
Quentin.
Thank you for your reply.
I will try this solution and come back to you with the results.
Quentin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Quintin,
Are you using Sessions and Postback to keep the report in scope in IIS?
Use Google and search for this KBA on how to use Sessions and Postback:
1985571 - How to use sessions in web applications using the Crystal Reports viewer (the complete code)
Note you also need to load the CR line in the Page_Init section.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.