Page 1 of 1

MagickCore bug on Windows 64 bit

Posted: 2011-07-21T16:12:27-07:00
by sn4p
If I compile and run a MagickCore example (the first example for instance) on a Windows 64 bit OS, I get this runtime error:

Magick: no decode delegate for this image format `C:/Users/PHILIP~1/AppData/Local/Temp/magick-9HWtB227' @ error/constitute.c/ReadImage/532.

The same example on Windows 32 bit OS works perfectly.

I think they missed some compiler flags for the 64 bit version of MagickCore that sets the MAGICK_HOME path. Everytime you run the .exe you will get the same error except for the last 8 chars that are randomly generated (9HWtB227).

It doesn't matter if I set the MagickCoreGenesis path, the error still remains.

My 64 bit system is:
Windows 7 64 bit
Compiler: Visual Studio 2010
ImageMagick-6.7.1-0-Q16-windows-x64-dll.exe

My 32 bit system is:
Windows Server 2008 x86
Compiler: Visual Studio 2010
ImageMagick-6.7.1-0-Q16-windows-dll.exe

Re: MagickCore bug on Windows 64 bit

Posted: 2011-07-25T21:03:56-07:00
by sn4p
Update: When compiling IM 64 bit from scratch in VS and using those generated dlls it works. Something is odd with the 64 bit precompiled dlls. If you google this error you will see that a lot of third party apps/dlls get this error. My guess is that the system's temp dir is hard coded into the precompiled dlls search path.