COM Convert and Win2003 Terminal Server
Posted: 2008-10-20T14:01:40-07:00
I have a VB6 application that works perfectly on my devlopment workstation (WinXP) but when depolyed to our Terminal Server does not work and fails without any error message.
The Server is Win2003 Stardard Edition SP2
The code is:
Dim img As MagickImage
Dim msgs
Set img = New MagickImage
msgs = img.Convert(Trim$("c:\mdctemp\" & Trim$(strImageID) & ".bmp"), "-colorspace", "GRAY", "- colors", "16", strFileName)
- The source image is a bitmap on the server hard drive and I am converting to a TIF on a network share (e.g. strFilename = "\\hbs-1\TSM01\Templates\123456.tif")
- I have similar code that converts .FAX to .TIF that also fails in the same manner
- When running on my workstation, I get a proper return value in msgs but when running in the vb6 DE on the server, msgs is empty.
- The application has run properly for years with on a Windows 2000 server with image magick version 5.4.9. However users needed to be in the administrtor group.
- When I originally attempted to run the application on the 2003 server with 5.4.9, the application would error out "cannot create object" unless you were in the administrator group
- I uninstalled 5.4.9 and installed 6.4.3 (ImageMagick-6.4.3-6-Q16-windows-dll.exe) in an effort to resolve the object creation issue to get to my current state of no error message but no conversion either even when logged in as administrator
Any help would be greatly appreciated,
Kent
The Server is Win2003 Stardard Edition SP2
The code is:
Dim img As MagickImage
Dim msgs
Set img = New MagickImage
msgs = img.Convert(Trim$("c:\mdctemp\" & Trim$(strImageID) & ".bmp"), "-colorspace", "GRAY", "- colors", "16", strFileName)
- The source image is a bitmap on the server hard drive and I am converting to a TIF on a network share (e.g. strFilename = "\\hbs-1\TSM01\Templates\123456.tif")
- I have similar code that converts .FAX to .TIF that also fails in the same manner
- When running on my workstation, I get a proper return value in msgs but when running in the vb6 DE on the server, msgs is empty.
- The application has run properly for years with on a Windows 2000 server with image magick version 5.4.9. However users needed to be in the administrtor group.
- When I originally attempted to run the application on the 2003 server with 5.4.9, the application would error out "cannot create object" unless you were in the administrator group
- I uninstalled 5.4.9 and installed 6.4.3 (ImageMagick-6.4.3-6-Q16-windows-dll.exe) in an effort to resolve the object creation issue to get to my current state of no error message but no conversion either even when logged in as administrator
Any help would be greatly appreciated,
Kent