Page 1 of 1

Crash when i try to read in an image

Posted: 2010-11-01T07:21:02-07:00
by imagemani2232
I am using the magic++ demo projects, when i try to run them they all crash when they try to read in an image.

typing Image image is fine but anything like Image myImage("myImage.png") or Image myImage(anotherImageOfImageType); crashes the program.

Any ideas?

Re: Crash when i try to read in an image

Posted: 2010-11-01T09:02:53-07:00
by magick
Which compiler are you using? We compiled the binaries with Visual Studio 2010 and there may be some incompatibilities with Visual Studio C++ 2010 and older versions of the compiler. If you are using and older compiler you probably will need to compile the ImageMagick source distribution yourself to workaround this problem.

Re: Crash when i try to read in an image

Posted: 2010-11-01T09:25:21-07:00
by imagemani2232
Ok, that will be it then, i am using visual studio 2008. Which brings me to my first post on these forums, ho do you build binaries for visual studio 2008 after syncing to the svn source of ImageMagick, i was unable to do this.

Re: Crash when i try to read in an image

Posted: 2010-11-01T09:33:25-07:00
by magick
See http://www.imagemagick.org/script/advan ... lation.php to build ImageMagick on Windows from source.

Re: Crash when i try to read in an image

Posted: 2010-11-01T11:02:35-07:00
by dproc
FYI I'm seeing the same thing with VS 2008. I built from source (16bbp, DLL) and the utils (convert.exe) built and run OK but my project still doesn't. My project was working with an earlier IM version. Unfortuanetly I don't have time at the moment to get any more details or dig into the problem.