You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.
I have an executable which is a combination of both managed and unmanaged C++ with several sub-projects (dll's) that are C#. We are building in x86 mode using .Net 4.6.1. I used Nuget to install both PPdfiumViewer and PdfiumViewer.Native.x86.v8-xfa packages to one of the C# dll's. When I try to call PdfDocument.Load(file_and_path_name) I get an exception from Pdfium.dll. The exception is:
Exception thrown at 0x172632F8 (pdfium.dll) in Traffic.exe: 0xC00002B5: Multiple floating point traps (parameters: 0x00000000, 0x00001121).
Exception thrown: 'System.Runtime.InteropServices.SEHException' in PdfiumViewer.dll
I got the PdfiumViewer pdb files from the PDFiumViewer project and can drill down to the call to FPDF_AddRef(). It errors out at Imports.FPDF_AddRef() on line 25 in NativeMethods.Pdfium.cs.
I have my copy of PdfiumViewer in the same directory as the exe file and the Pdfium.dll in an x86 subdirectory. If I call LoadLibrary(pdfium_path), LoadLibrary appears to succeed.
I have both your Demo project and a separate stand alone WinForm project running correctly using the same files and formats, so I'm not sure what is different here.
Any suggestions or steps I could use to debug the problem?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have an executable which is a combination of both managed and unmanaged C++ with several sub-projects (dll's) that are C#. We are building in x86 mode using .Net 4.6.1. I used Nuget to install both PPdfiumViewer and PdfiumViewer.Native.x86.v8-xfa packages to one of the C# dll's. When I try to call PdfDocument.Load(file_and_path_name) I get an exception from Pdfium.dll. The exception is:
I got the PdfiumViewer pdb files from the PDFiumViewer project and can drill down to the call to FPDF_AddRef(). It errors out at Imports.FPDF_AddRef() on line 25 in NativeMethods.Pdfium.cs.
I have my copy of PdfiumViewer in the same directory as the exe file and the Pdfium.dll in an x86 subdirectory. If I call LoadLibrary(pdfium_path), LoadLibrary appears to succeed.
I have both your Demo project and a separate stand alone WinForm project running correctly using the same files and formats, so I'm not sure what is different here.
Any suggestions or steps I could use to debug the problem?
The text was updated successfully, but these errors were encountered: