Error:-2147215503 - convert
Posted: 2007-01-23T23:00:33-07:00
I have some VBA code that I'm using to process thousands of JPGs into PDFs. It creates a single page PDF for each JPG with ImageMagick, then uses PDFTK to put those single page PDFs into one PDF bundle (avoiding the compression artifacting of image magick).
This is working on one PC but when it errors when running this on the second PC I have set up. This error does not happen at any set time of number of files processed or system resources being used. The sizes of the jpgs does not seem to effect.
Error message;
Error:-2147215503 - convert: 0xC0000005: access violation
Same apps on both PCs;
WindowsXP Pro
ImageMagick-6.3.1-6-Q8-windows-dll.exe
gs854w32.exe
Base part of the code that loops for each JPG and is where the error always sources from;
Dim imgobj As MagickImage, strImgFrom As String, strImgTo As String
strImgFrom = "D:\temp\0001.jpg"
strImgTo = "D:\temp\0001.pdf
Set imgobj = New MagickImage
imgobj.Convert strImgFrom, "-resample", "100x100", "-quality", "60", strImgTo
Set imgobj = Nothing
HELP!! PLEASE!!! Any ideas.
This is working on one PC but when it errors when running this on the second PC I have set up. This error does not happen at any set time of number of files processed or system resources being used. The sizes of the jpgs does not seem to effect.
Error message;
Error:-2147215503 - convert: 0xC0000005: access violation
Same apps on both PCs;
WindowsXP Pro
ImageMagick-6.3.1-6-Q8-windows-dll.exe
gs854w32.exe
Base part of the code that loops for each JPG and is where the error always sources from;
Dim imgobj As MagickImage, strImgFrom As String, strImgTo As String
strImgFrom = "D:\temp\0001.jpg"
strImgTo = "D:\temp\0001.pdf
Set imgobj = New MagickImage
imgobj.Convert strImgFrom, "-resample", "100x100", "-quality", "60", strImgTo
Set imgobj = Nothing
HELP!! PLEASE!!! Any ideas.