Page 1 of 1

VBA Automation error - catastrophic failure

Posted: 2013-12-14T08:51:11-07:00
by dgmoore
I added ImageMagickObject.dll to my Access 2010 (Win7 Pro) vba references; the code compiles, but upon attempting to convert (resize) an image

NewImage.Convert InputputFileName, "-resize", "60%", WebFileName

I get -2147418113 Automation Error Catastrophic failure

Does anybody know what could be causing this?

Thanks
Dave

Re: VBA Automation error - catastrophic failure

Posted: 2013-12-14T14:52:57-07:00
by dgmoore
Found the problem - apparently ImageMagick is unhappy with early binding.

This works:

Dim NewImage As Object
Set NewImage = New ImageMagickObject.MagickImage


This does not:

Dim NewImage As New ImageMagic...