convert pdf to tiff(multipages)/memory leak?

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
julia kim
Posts: 4
Joined: 2011-04-19T18:21:41-07:00
Authentication code: 8675308

convert pdf to tiff(multipages)/memory leak?

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
julia kim
Posts: 4
Joined: 2011-04-19T18:21:41-07:00
Authentication code: 8675308

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

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
julia kim
Posts: 4
Joined: 2011-04-19T18:21:41-07:00
Authentication code: 8675308

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

Post 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) ?
Post Reply