ImageMagickObject does not register on Windows 7 64

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
PeterCzerna
Posts: 4
Joined: 2011-01-28T08:50:16-07:00
Authentication code: 8675308

ImageMagickObject does not register on Windows 7 64

Post by PeterCzerna »

[Posted this a couple of days ago on the 'Windows COM objects' board. Anyone listening?]

I cannot register the ImageMagickObject.
- I am using Win 7 64bit
- ImageMagick-6.6.7-Q16 installed from ImageMagick-6.6.7-3-Q16-windows-x64-dll.exe.
- The auto registration during install failed (silently...)
- Manual registration from the command prompt as Administrator gives the following error message:

"The module "ImageMagickObject.dll" may not be compatible with the version of Windows that you are running..."
Both versions of regsvr32.exe produce the same message.

:( :(
honyk
Posts: 11
Joined: 2010-11-15T11:28:00-07:00
Authentication code: 8675308

Re: ImageMagickObject does not register on Windows 7 64

Post by honyk »

I've had the same problem. I've installed VC++ redistributable packages (see the comment at the very bottom: http://www.imagemagick.org/script/binar ... hp#windows ). Later I registered library without problems (from cmdline as administrator), but although I see that ActiveX in regedit (and I can select it as reference in VBA), when used in my script I am getting Can't create object error. So that registration seems to be broken as that library doesn't work properly. Restart doesn't help :-(
PeterCzerna
Posts: 4
Joined: 2011-01-28T08:50:16-07:00
Authentication code: 8675308

Re: ImageMagickObject does not register on Windows 7 64

Post by PeterCzerna »

Thanks, honyk. Installing the C++ libraries fixed the registration problem, but I am now stuck in the same place as you, with "Cannot instantiate oImageMagick: Automation server can't create object" message.

I'm using JScript and the equivalent call is: "oImageMagick = new ActiveXObject("ImageMagickObject.MagickImage.1");"

According to the Registry, the programID is "ImageMagickObject.MagickImage.1", which seems OK. Haven't tried with the CLSID yet.

:(
honyk
Posts: 11
Joined: 2010-11-15T11:28:00-07:00
Authentication code: 8675308

Re: ImageMagickObject does not register on Windows 7 64

Post by honyk »

I suspect there are missing some additional dependency libraries in my system. Could anybody bring more light into this?
honyk
Posts: 11
Joined: 2010-11-15T11:28:00-07:00
Authentication code: 8675308

Re: ImageMagickObject does not register on Windows 7 64

Post by honyk »

I've tried Dependency walker http://www.dependencywalker.com/ and ImageMagickObject.dll seems to be 32-bit ! Could it be fixed soon?
honyk
Posts: 11
Joined: 2010-11-15T11:28:00-07:00
Authentication code: 8675308

Re: ImageMagickObject does not register on Windows 7 64

Post by honyk »

Sorry for misleading post sent before (32bit on 64bit Win). I've tried to install the last build (6.6.7-5) and everything works fine now.
PeterCzerna
Posts: 4
Joined: 2011-01-28T08:50:16-07:00
Authentication code: 8675308

Re: ImageMagickObject does not register on Windows 7 64

Post by PeterCzerna »

Just tried with ImageMagick-6.6.7-6-Q16-windows-x64-dll.exe and it still doesn't work for me.
- I still have to do a manual registration with regsvr32.exe.
- Still get the same error message.

I'm giving up - just can't be bothered with this anymore. It is really not worth the trouble since the implementation of the object is so primitive.
You are in effect just passing the command line string to the relevant method as one huge string argument. If I need to parameterize properly I'll use one of the other APIs, but until then I'll just use the command line.
Post Reply