PrintImage causes memory corruption

I am having a problem using a PrintImage

C # ActivePDF library function . When I use it to try and put a .gif image in PDF, I get this error message:

An attempt was made to read or write protected memory. This is often an indication that other memory is damaged.

I can use the image function PrintJPEG

and PrintTIFF

without any problems. Has anyone encountered this problem before?

+1


source to share


1 answer


Is this an image coming from a drawer or similar control? If that's the case, then this control has a lock on that image (I ran into the same situation while trying to serialize an object containing an image from an inkpicture control). You will need to copy the image before placing it in the pdf document.



0


source







All Articles