logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
richard  
#1 Posted : Thursday, May 9, 2019 8:31:17 AM(UTC)
richard

Rank: Newbie

Groups: Registered
Joined: 5/9/2019(UTC)
Posts: 2
Australia
Location: Sydney

Hello,

We've just updated to 4.0.0.2704 and our app is now crashing with an AccessViolationException when trying to load a PDF. The offending code is

Code:
_internalDocument = PdfDocument.Load(filePath, new PdfForms());


and the stack trace is

Quote:
Exception Info: System.AccessViolationException
at Patagames.Pdf.Pdfium.FPDFInterForm_GetFormNotify_native()
at Patagames.Pdf.Pdfium.FPDFInterForm_SetFormNotify(IntPtr, Patagames.Pdf.FPDF_FORMFILLNOTIFY)

Exception Info: Patagames.Pdf.Net.Exceptions.FatalErrorException
at Patagames.Pdf.Pdfium.FPDFInterForm_SetFormNotify(IntPtr, Patagames.Pdf.FPDF_FORMFILLNOTIFY)
at Patagames.Pdf.Net.PdfForms.Init(Patagames.Pdf.Net.PdfDocument)
at Patagames.Pdf.Net.PdfCustomLoader.Load()
at Patagames.Pdf.Net.PdfDocument.Load(System.IO.Stream, Patagames.Pdf.Net.PdfForms, System.String, Boolean)
at Patagames.Pdf.Net.PdfDocument.Load(System.String, Patagames.Pdf.Net.PdfForms, System.String)
at Automation.Delivery.WPF.PDF.Services.Imp.PdfDocumentConnector.LoadPdfFile(System.String)
...


Any help would be greatly appreciated.

Regards,

Richard
Paul Rayman  
#2 Posted : Thursday, May 9, 2019 9:42:04 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 724

Thanks: 1 times
Was thanked: 87 time(s) in 86 post(s)
Hi,

Could you please provide a sample console app where this issue is reproduced and a PDF that is being loaded?
Paul Rayman  
#3 Posted : Thursday, May 9, 2019 9:48:57 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 724

Thanks: 1 times
Was thanked: 87 time(s) in 86 post(s)
Please try to update to the latest version.
It should be:
Product version:
4.6.2704
Assembly versions:
4.1.3.2704 - Pdfium.dll
4.2.3.xx - Patagames.Pdf.dll
4.2.1.xx - Patagames.Pdf.Wpf.dll
4.2.1.xx - Patagames.Pdf.WinForms.dll
richard  
#4 Posted : Thursday, May 9, 2019 11:24:17 PM(UTC)
richard

Rank: Newbie

Groups: Registered
Joined: 5/9/2019(UTC)
Posts: 2
Australia
Location: Sydney

Hey Paul,

Thanks for getting back to me. Turns out there was one pdfium.dll update I missed. Working fine now.

Sorry for the bother!

Richard
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.