#2 Runtime error (non-MSVC)

closed-fixed
nobody
None
6
2009-08-14
2009-08-13
No

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.

Discussion

  • Joseph Miller

    Joseph Miller - 2009-08-13

    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.

     
  • Joseph Miller

    Joseph Miller - 2009-08-14

    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().

     
  • Joseph Miller

    Joseph Miller - 2009-08-14
    • status: open --> closed-fixed
     

Log in to post a comment.