Page 1 of 1

Automation Error

Posted: 2009-07-21T09:28:01-07:00
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

Re: Automation Error

Posted: 2009-07-21T11:29:35-07:00
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."

Re: Automation Error

Posted: 2009-07-22T07:58:04-07:00
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.