PDFTron leads to Fatal error. System.AccessViolationException: Attempted to read or write protected memory.

Product:
PDFTron.NETCore.Windows.x64

Product Version:
10.10.0

Please give a brief summary of your issue:
PDFTron is throwing a System.AccessViolationException: Attempted to read or write protected memory.

Please describe your issue and provide steps to reproduce it:
We are attempting to use PdfTron to convert documents to Text based PDFs. It seems like conversions are working, however we are seeing the following exception:

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other m
emory is corrupt.
Repeat 2 times:

at pdftron.PDFNetPINVOKE.TRN_FontDestroy(IntPtr)

at pdftron.PDF.Font.Destroy()
at pdftron.PDF.Font.Dispose(Boolean)
at pdftron.PDF.Font.Finalize()

1 Like

Most likely you are running into a file specific issue.

Can you please provide us the input file, and the code to reproduce.

If the file cannot be posted here in the forum, you can submit at support.apryse.com

1 Like