Skip to Content
0

Access violation ExportToStream

Mar 02 at 10:18 AM

41

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Don Williams
Mar 02 at 09:05 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 05 at 04:35 PM
0

Thank you for your reply.

I will try this solution and come back to you with the results.

Quentin.

Share
10 |10000 characters needed characters left characters exceeded