Magick++ crashed on reading image

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
ravisharma1987
Posts: 2
Joined: 2011-04-15T23:47:21-07:00
Authentication code: 8675308

Magick++ crashed on reading image

Post by ravisharma1987 »

Hello All,

There is a problem I am facing in using magick++,
When i am trying to read a jpg image, the programe is crashing.
I am using visual studio 2008, and here is my code snippet.
int main(int argc, char* argv[])
{
InitializeMagick("");
try {
// Image size
Image image;
cout<<"Reading an image"<<endl; ///////////I can see this print
image.read("C:\\cylinder_shaded.png"); ///////////Here is the crash happening
// Save to file
image.magick("png");
image.write("test.png");
}
catch( exception &e )
{
cout << "Caught exception: " << e.what() << endl;
}
return 0;
}
Post Reply