Automation Error

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
spieler
Posts: 47
Joined: 2004-10-08T09:03:16-07:00
Location: Iowa

Automation Error

Post by spieler »

I am getting similar errors posted by others with the newer versions

With 6.3.6,
oMI.Identify("-format", "%m", "rose:") returns "ROSE"

With 6.5.4, I get an error -2147418113 with the description
Automation error
Catastrophic failure


I am running Vista Business SP1 32-bit, have installed the Microsoft Visual C++ 2008 SP1 Redistributable Package, and am developing in VB.


On a somewhat related note, if I do
identify c:\temp.tif
from the command line I get
temp.tif=>temp.tif TIFF 1728x2205 1728x2205+0+0 1-bit DirectClass 262kb
identify: temp.tif: unknown field with tag 326 (0x146) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/528.


and %ERRORLEVEL% is set to 0 saying it is successful. I know the items are only warnings and can be ignored. When using IMO, however, the warnings cause the item to fail.

Thanks,
Gary
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Automation Error

Post by magick »

I know the items are only warnings and can be ignored. When using IMO, however, the warnings cause the item to fail.
Add -regard-warnings to your command line. This option means "pay attention to warning messages."
spieler
Posts: 47
Joined: 2004-10-08T09:03:16-07:00
Location: Iowa

Re: Automation Error

Post by spieler »

magick wrote:Add -regard-warnings to your command line. This option means "pay attention to warning messages."
I do not want to pay attention to warnings. I want ImageMagickObject to disregard the standard error messages (the way the command line does) and return successfully.
Post Reply