Page 1 of 1

convert pdf to tiff(multipages)/memory leak?

Posted: 2011-04-19T18:41:51-07:00
by julia kim
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

Code: Select all

	
    	    list<Image> imageList;
	    readImages( &imageList, "D:\\Image4.pdf" );
	    //TRACE("imageList.size() = %d \r\n", imageList.size());
	    writeImages( imageList.begin(), imageList.end(), "D:\\TiffToPdf.tif" );
I'd like to know what is creating this problem and how to fix it. Thank you

Re: convert pdf to tiff(multipages)/memory leak?

Posted: 2011-04-19T18:55:26-07:00
by magick
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.

Re: convert pdf to tiff(multipages)/memory leak?

Posted: 2011-04-19T21:18:43-07:00
by julia kim
Thank you
url is http://edms.zenithst.com/NADi/image4.pdf
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.

Re: convert pdf to tiff(multipages)/memory leak?

Posted: 2011-04-20T07:55:49-07:00
by magick
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.

Re: convert pdf to tiff(multipages)/memory leak?

Posted: 2011-04-20T18:03:43-07:00
by julia kim
it was caused by CORE_DB_magick_.lib or CORE_DB_Magick++_.lib
my linker list is

Code: Select all

           CORE_DB_magick_.lib
           CORE_RL_magick_.lib
           CORE_RL_Magick++_.lib
           X11.lib
           odbc32.lib
           odbccp32.lib
           winmm.lib
           wsock32.lib
      
button linker list is

Code: Select all

           CORE_RL_magick_.lib
           CORE_RL_Magick++_.lib
           X11.lib
           odbc32.lib
           odbccp32.lib
           winmm.lib
           wsock32.lib
      

Thank for your help and is there *.lib *.dll explanation(documentation) ?