Hi I am a newbie to Image magic but I am having a problem with it crashing when running in debug on the line "image.magick("JPG");"
I have included the definition as in my application <below>
#include <Magick++.h>
using namespace std;
using namespace Magick;
And here is the code I am using in one of my functions to basicially flip an Image. I am not sure why's is throwing and exception on the image.magick("JPG") line but any help would be appreciated.
InitializeMagick("");
Image image;
image.resolutionUnits(PixelsPerInchResolution);
image.density("752x480");
image.magick("JPG");
image.read(FileName);
image.rotate(180);
image.write(FileName);
Unhandled exception 0xC00000005 - image.magick("JPG")
Re: Unhandled exception 0xC00000005 - image.magick("JPG")
We tried your code and it worked for us. Try the button project in your ImageMagick distribution typically at c:/Program Files/ImageMagick-6.3.5/Magick++_Demos and building from the button project. If that runs copy/paste your code into button, replacing whatever is already there. Now build/run again. If it works the problem may be your project configuration. Use the button project as a model for your own project.
Re: Unhandled exception 0xC00000005 - image.magick("JPG")
Hi Thanks, the button project runs fine, but the application type is different I am running. I will inveastigate further but does look like some kind of config issue.
Re: Unhandled exception 0xC00000005 - image.magick("JPG")
Hi,magick wrote:We tried your code and it worked for us. Try the button project in your ImageMagick distribution typically at c:/Program Files/ImageMagick-6.3.5/Magick++_Demos and building from the button project. If that runs copy/paste your code into button, replacing whatever is already there. Now build/run again. If it works the problem may be your project configuration. Use the button project as a model for your own project.
I get the exact same error. The button project runs fine on my computer, though I can't use it as a template to solve this issue... I can't do this as I want to integrate Magick++ into an existing program. Any idea how to fix this issue, it looks like it's been around for a while, and it's been bugging many people!
Thanks