I've used ImageMagick-6.6.9 (VisualDynamicMT.sln) and visual studio c++ 2008.
I've got a message "HEAP[TestDlg.exe]: Invalid address specified to RtlValidateHeap( 011D0000, 04FF0028 )" after "writeImages" code
Can you post a URL to your Image4.pdf? We tried your code sequence on our PDF's with a memory error checker and it ran to completion without complaint.
magick wrote:Can you post a URL to your Image4.pdf? We tried your code sequence on our PDF's with a memory error checker and it ran to completion without complaint.
We downloaded the ImageMagick Windows source and compiled it with Visual Studio 2008. We then installed it and embedded your code snippet in the button project in c:\Program Files\ImageMagick-6.6.9-Q16\Magick++_demos. We then built the button workspace and executed it. It read your PDF and converted it to TIFF as expected without any exceptions / complaints. Any problems you are having are related to your system environment, not ImageMagick.