Memory Exception - 64 bit

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan

Post Reply
gregc
User
Posts: 2
Joined: Wed Jul 03, 2019 6:54 pm

Memory Exception - 64 bit

Post by gregc » Wed Jul 03, 2019 7:04 pm

We are using the PDF Tools SDK 4 and have been for years now in production code in 64 bit. We have since migrated the application to a new server OS, Windows 2016 server, and now running it in the 64 bit process does not work properly. It worked properly in the 64 bit mode on the old Windows Server 2008 OS, so I am not sure why it will not work on the new OS.

It works fine in a 32 bit process in the new Windows Server 2016 OS, but we are getting the exception below when we attempt to run it in a 64-bit process.

System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

This exception occurs when we call “PDFXC_Funcs.PXC_AddEnhMetafile(pdf, metaFile.GetHenhmetafile(), out image);”.

We have the DLLImport defined as followed:


[DllImport("pxclib40")]
public static extern int PXC_AddEnhMetafile(int pdf, IntPtr metafile, out int image);

Can you shed any light on why we are receiving this exception?

gregc
User
Posts: 2
Joined: Wed Jul 03, 2019 6:54 pm

Re: Memory Exception - 64 bit

Post by gregc » Mon Jul 15, 2019 12:46 pm

I was directed to this forum by the official support team so I am a little confused as to why I wouldn't at least receive some type of response. Is there a way to escalate the issue? Thank you.

Post Reply