We have a .NET application that uses Amyuni PDF Converter 4.5. For the most part it's working great for us. However, we have a user who, when he prints drawings to a large paper size, gets an AccessViolationException: Attempted to read or write protected memory. Here are some more details:
- The user's machine is Win7, x64 and we're using version 188.8.131.52 of the Amyuni PDF Converter
- I'm able to print the same PDFs on my machine, which is also Win7, x64.
- An example of a PDF that causes the exception is about 1.5MB. He's able to print drawings on smaller paper sizes, though.
- We've tried reinstalling the Amyuni driver numerous times. We've also tried creating a new, administrative user profile for the user, in case his user profile was corrupt.
I'm not sure what other information to give. Here's a sampling of the code:
Code: Select all
//init driver hPrinter = DriverInit(PDFPRINTER); //set lots of options here: paper size, orientation, resolution, filename... //Enable EnablePrinter(hPrinter, PDFLICENSEE, PDFACTIVATIONCODE); //Printing Magic LocalPrintServer ps = new LocalPrintServer(); PrintQueue pq = ps.DefaultPrintQueue; pq.UserPrintTicket = pt; xpsW = PrintQueue.CreateXpsDocumentWriter(pq); xpsW.WritingCompleted += new System.Windows.Documents.Serialization.WritingCompletedEventHandler(xpsW_WritingCompleted); if(hPrinter != IntPtr.Zero) //PDF Print in Progress, so activate as close as possible to the actual print EnablePrinter(hPrinter, PDFLICENSEE, PDFACTIVATIONCODE); // visPrint is a WPF Visual xpsW.WriteAsync(visPrint);