Page 1 of 1

program crashes at first image magic line

Posted: 2011-10-27T05:21:28-07:00
by ulao
I'm using imageMagic in a dll compilation to rotate an image. Seem no matter what function I use, other then the init, will put may app in a loop until it crashes.


InitializeMagick(""); //executes
Image image( "100x100", "white" ); //dies here [Caught exception: Magick: NoDecodeDelegateForThisImageFormat `#FFFFFFFFFFFF' @ error/constitute.c/ReadImage/532]
image.pixelColor( 49, 49, "red" );
image.write( "red_pixel.png" );

I went a head and tried this is a test project ( flip example ) and I get unhandled exception in the magick::errorMissingDeleate magick_home is set to the install path ( the parent of Magick++ )


I saw a thread about MAGICKCORE_INSTALLED_SUPPORT, and I do not have this defined. my magic_home is set to my install path

Re: program crashes at first image magic line

Posted: 2011-10-27T20:09:48-07:00
by anthony
I am not certain of the API that is being used. But shouldn't you create a 'new image' before reading the image in?

Re: program crashes at first image magic line

Posted: 2011-10-28T04:48:34-07:00
by ulao
I though that is what this line was
Image image( "100x100", "white" );
? - however this was in fact just test code, seem to be working as I intended it by reading from memory.