Page 1 of 1

With imagemagick version 7.0.8 getting exception in C++ code

Posted: 2019-11-28T00:50:05-07:00
by Piyush
I have updated imagemagick version 7.0.8 and while I am going to open any .eps image file I am getting access violation exception. While the same image is being opened and working fine with 7.0.2.

Please help me in that.

Re: With imagemagick version 7.0.8 getting exception in C++ code

Posted: 2019-11-28T00:53:15-07:00
by snibgo
Please paste the exact error message.

What does "magick -version" say?

Re: With imagemagick version 7.0.8 getting exception in C++ code

Posted: 2019-11-28T01:14:54-07:00
by Piyush
D:\Users\Piyush.Mahendra>magick -version
Version: ImageMagick 7.0.8-37 Q16 x86 2019-04-03 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg lcms lqr lzma openexr pangocairo png ps raw rsvg tiff webp xml zlib


The exact error is as follows:

Project graphicsbrowser.exe raised exception class $C0000005 with message 'access violation at 0x77397c42: read of address 0x00000000'.
actually graphicsbrowser.exe is my project which is using imagemagick api's.

I am getting error on line
mImage_p = new Magick::Image( mBlob );
while creating image instance.

Re: With imagemagick version 7.0.8 getting exception in C++ code

Posted: 2019-11-28T01:28:23-07:00
by snibgo
I suspect graphicsbrowser.exe has a bug.

Re: With imagemagick version 7.0.8 getting exception in C++ code

Posted: 2019-11-29T01:52:54-07:00
by Piyush
But same graphicsbrowser code is working fine with imagemagick 7.0.2 version. When I am going to call imagemagick API BlobToImage() the exception is coming.