Page 1 of 1

Convert no longer working with VB

Posted: 2009-09-25T17:00:09-07:00
by DEVLitehouse
I can no longer call Convert (and many other functions, some work some don't) from VB. I'm using version 6.5.6-4, which is currently the newest version of ImageMagick. I installed from Windows Binary. What I WANT to do (and have been successfully doing until installing the new version) is more complex, but here is a very simple code example to help duplicate the bug.

Code: Select all

Private Sub cmdTest_Click()
  On Error GoTo testDebug
  
  Dim iMagick As New ImageMagickObject.MagickImage
  iMagick.Convert "test.png", "test.jpg"
  Exit Sub
testDebug:
  Debug.Print "Error Number: " & Err.Number & vbCrLf & "Error Description: " & Err.Description
End Sub
The above code gives the following debug print:

Code: Select all

Error Number: -2147418113
Error Description: Method 'Convert' of object 'IMagickImage' failed
Please note that the following shell command converts the file correctly:

Code: Select all

convert test.png test.jpg
Before you ask, yes, Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) is installed. :)

Re: Convert no longer working with VB

Posted: 2009-09-26T17:25:16-07:00
by magick
Unfortunately we cannot reproduce the problem. We installed the ImageMagick binary and source distribution. The source provides two Visual Basic scripts, ArrayTest.vbs and SimpleTest.vbs. Both scripts completed without complaint.

Re: Convert no longer working with VB

Posted: 2009-10-08T13:32:37-07:00
by roach
I'm receiving the same error, with version 6.5.6-Q16 (dynamic)

Running SimpleTest.vbs apparantly does nothing at all, but pops up a messagebox that says "info: LOGO,480,640".
Running ArrayTest.vbs pops up a messagebox "array: 474", another with "output:71905", and creates an empty (0kb) JPEG file, bill_meets_gorilla_screen_iptc.jpg.

Is this the expected output?

thanks,

Re: Convert no longer working with VB

Posted: 2009-10-08T17:00:40-07:00
by magick
That is the expected output. Its a simple test to just prove it works.

Re: Convert no longer working with VB

Posted: 2010-01-04T12:12:05-07:00
by spieler
Early binding no longer works. See my post at

viewtopic.php?f=3&t=14461