Page 1 of 1

Unhandled exception 0xC00000005 - image.magick("JPG")

Posted: 2007-09-21T03:11:13-07:00
by AndyBird
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);

Re: Unhandled exception 0xC00000005 - image.magick("JPG")

Posted: 2007-09-21T06:39:21-07:00
by magick
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")

Posted: 2007-09-24T02:02:50-07:00
by AndyBird
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")

Posted: 2008-06-27T14:14:38-07:00
by jstoezel
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.
Hi,

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