Hello,
I am currently trying using Ghostscript under Windows x32 and x64 bits platform.
I use x32 and x64 bits version of ImageMagick for my application.
I found a bug in the nt-base.c for retrieving the ghostscript setup path.
in file nt-base.c NTLocateGhostscript function the following code should be removed:
#if defined(KEY_WOW64_32KEY)
mode|=KEY_WOW64_32KEY;
#endif
Explanation:
On a x32 bits system
Removing the line has no incidence.
On a x64 bits system
Please refer to Registry Reflection under MSDN.
-> Compiling x32 ImageMagick : ImageMagick should retrieve Ghostscript x32 setup keys in order to be able to load the x32 bits ghostscript dll
Registry reflection is automatic. RegOpenKeyExA automatically opens keys under \Software\Wow6432Node
-> Compiling x64 ImageMagick : ImageMagick should retrieve Ghostscript x64 setup keys in order to be able to load the x64 bits ghostscript dll
RegOpenKeyExA automatically opens keys under Wow6432Node \Software\
if you set mode|=KEY_WOW64_32KEY; the \Software\Wow6432Node key will be retrieve even for x64 bits ImageMagick.
And so, NTLocateGhostscript will retrieve the setup path for x32 bits Ghostscript package.
ImageMagick x64bits will then try to load the ghoscript x32 dll which is not possible.
I hope everything is clear. Let me know I can give further help if needed,
Manuel Jouglet
Mootools
Ghostscript on Windows x64
Ghostscript on Windows x64
Manuel Jouglet
Mootools
Mootools
Re: Ghostscript on Windows x64
Thanks for the problem report and explanation. We'll get the patch into the next point release of ImageMagick.