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
Automation Error
Re: Automation Error
Add -regard-warnings to your command line. This option means "pay attention to warning messages."I know the items are only warnings and can be ignored. When using IMO, however, the warnings cause the item to fail.
Re: Automation Error
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.magick wrote:Add -regard-warnings to your command line. This option means "pay attention to warning messages."