Page 1 of 1

ExportDocument - AccessViolationException

Posted: Thu Feb 07, 2013 7:27 am
by luczan
Hello,
can you help me with this problem?
....
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at Stimulsoft.Report.StiReport.ExportDocument(Stimulsoft.Report.StiExportFormat, Stimulsoft.Report.Export.StiExportService, System.IO.Stream, Stimulsoft.Report.Export.StiExportSettings)
at Stimulsoft.Report.StiReport.ExportDocument(Stimulsoft.Report.StiExportFormat, System.IO.Stream, Stimulsoft.Report.Export.StiExportSettings)
.....

my pdf settings:
var settings = new StiPdfExportSettings { ImageQuality = 1.0f, ImageResolution = 500, KeywordsString = this.TemplateValidFrom.ToString("dd.MM.yyyy HH:mm:ss") };
settings.UseDigitalSignature = true;
settings.GetCertificateFromCryptoUI = false;
settings.UseLocalMachineCertificates = true;
settings.SubjectNameString = certificateName;


Stimulsoft version: 2012.3.1404.0

..but i can't reproduce this issue.

thanks
marek

Re: ExportDocument - AccessViolationException

Posted: Thu Feb 07, 2013 11:31 am
by HighAley
Hello.

It seems that there is an access error. Do you have access to the file where you tries to export report?

Thank you.

Re: ExportDocument - AccessViolationException

Posted: Tue May 07, 2013 8:06 am
by luczan
hello,

i think, it's not a problem with access right to read/write file.

i find that this exception is thrown always when:
1. turn on computer
2. start my app to generate PDF documents in parallel (when documents are generated "one after another", no error is occured)

later - when app is started again with same data, all is ok.

do you have any idea, what's wrong?

thanks
marek

Re: ExportDocument - AccessViolationException

Posted: Wed May 08, 2013 11:27 am
by HighAley
Hello.

To answer your question we need additional information:
• Your operational system (98, ME, 2000, XP, Vista or NT), its version and localization, installed service-packs;
• Version the of Microsoft .Net Framework package installed and its localization;
• Name of your development framework and its version;
• Additional information that can help us to solve your problem.

Thank you.

Re: ExportDocument - AccessViolationException

Posted: Thu May 09, 2013 6:16 am
by luczan
all - EN localization

Windows 7 Professional (64) SP1 with all available updates
Microsoft .Net Framework Version 4.5.50709
Visual Studio Professional 2012 Version 11.0.50727.1
StimulsoftReports.Ultimate - the latest version

Memory dump is attached.

thank you

Re: ExportDocument - AccessViolationException

Posted: Mon May 13, 2013 6:43 am
by luczan
we did (probably) find problem:
memcpy

if (Win32.CryptSignMessage(ptr7, 1, 1, ptr, rgcbToBeSigned, pbSignedBlob, ref pcbSignedBlob) == 0)
in StiPdfExportService.CreateSignature


http://msdn.microsoft.com/en-us/library ... 85%29.aspx
On input, buffer sizes are usually specified large enough to ensure that the largest possible output data will fit in the buffer.

Re: ExportDocument - AccessViolationException

Posted: Mon May 13, 2013 1:46 pm
by HighAley
Hello.

Could you send us a sample project to reproduce the issue?

Thank you.

Re: ExportDocument - AccessViolationException

Posted: Wed May 15, 2013 7:05 am
by luczan
hello,

we sent you a mail with console app on monday - mail: [#PTD-815264]: Stimulsoft - system.AccessViolationException

marek

Re: ExportDocument - AccessViolationException

Posted: Thu May 16, 2013 8:06 am
by Alex K.
Hello,

The issue is fixed.
The solution will be available in the next prerelease build.

Thank you.