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

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
AndyBird

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

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

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

Post 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.
AndyBird

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

Post 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.
jstoezel

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

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