Method 'Identify' of object 'IMagickImage' failed

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
Rataplan

Method 'Identify' of object 'IMagickImage' failed

Post 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
spieler
Posts: 47
Joined: 2004-10-08T09:03:16-07:00
Location: Iowa

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

Post 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.
Rataplan

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

Post 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
spieler
Posts: 47
Joined: 2004-10-08T09:03:16-07:00
Location: Iowa

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

Post 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.
Post Reply