Page 1 of 1

Method 'Identify' of object 'IMagickImage' failed

Posted: 2009-12-29T08:22:49-07:00
by Rataplan
Hi,

I'm using Visual Basic 6, and using this code:

Sub Main()
Dim objMi As ImageMagickObject.MagickImage
Dim strTag As String

Set objMi = New ImageMagickObject.MagickImage
strTag = objMi.Identify("-format", "%b", "D:\Temp\example.jpg")
Set objMi = Nothing
End Sub

Executing the code above, I get this error on line 'strTag = ...':
Run-time error '-2147418113 (8000fff)':
Method 'Identify' of object 'IMagickImage' failed

Can anyone help me to solve this problem ?

Thanks in advance,
Mark

Re: Method 'Identify' of object 'IMagickImage' failed

Posted: 2010-01-04T11:45:32-07:00
by spieler
Yes, early binding no longer works. See my post at

viewtopic.php?f=3&t=14461

Feel free to reply to that one as I didn't get very far. I'll bump it, too, to see if I get a response.

Re: Method 'Identify' of object 'IMagickImage' failed

Posted: 2010-01-06T08:28:19-07:00
by Rataplan
Spieler,

As you can see, in my example code, exactly the same code is used as you are proposing as a solution.

In short, your proposal/solution is not working too.

Mark

Re: Method 'Identify' of object 'IMagickImage' failed

Posted: 2010-01-06T10:31:41-07:00
by spieler
Your code isn't exactly the same.

Change
Dim objMi As ImageMagickObject.MagickImage
to
Dim objMi

Apparently when both early and late binding is done, the early binding still causes problems.