read or write protected memory

read or write protected memory

Forum member · Jul 29, 2009
Hi, there : when trying to print a PDF file, I've message as : "Attempted to read or write protected memory. This is often an indication that other memory is corrupt.", it does print out the lines on that PDF file. did try closing visual studio or reboot machine. still same result. can you help ? thanks,

Re: read or write protected memory

Support · Jul 29, 2009
Hello, Can you please send over the PDF and the code you are using to print to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further? We also need the specifications of the printer you are using. Thanks, ceTe Software Support Team.

Re: read or write protected memory

Forum member · Aug 21, 2009
We are getting the same issue here. Very easy to reproduce with the exact same PDF bytes that work fine moments prior. I will email some samples in a few moments

Re: read or write protected memory

Forum member · Aug 21, 2009
What seems to work is this: If it implements IDisposable - make sure you are disposing it or wrapping in a using clause. We had the same issue and once we ensured we were always disposing of the InputPDF object and PrintJob object the issue went away.