There is still a runtime error on some machines. Must check to see if this is from missing or incompatible libraries different from development machine.
OK, after doing something right and adding try/catch loop, I found a NoDecodeDelegateForThisImageFormat. It seems that the config required by ImageMagick is missing. I will have to figure out how to add this in.
OK, the fix for this is to copy ImageMagick dependency files (http://www.imagemagick.org/script/resources.php) to the Scanner Copier GPL directory and set Scanner Copier GPL to initialize environment variables for ImageMagick. It appears that the ImageMagick DLL's get their environment before WinMain is called so a workaround to make this function on the fly is for Scanner Copier GPL to check first for these environment variables, set them if they don't exist, then call a second instance of itself which re-loads everything with the correct environment, then exit the original process. This has been implemented in SetupEnv().
Log in to post a comment.