CauldronDevelopmentLLC / CAMotics

Open-Source Simulation & Computer Aided Machining - A 3-axis CNC GCode simulator
Other
624 stars 143 forks source link

LoadLibrary failed with error 193: %1 is not a valid Win32 application. #194

Closed jcoffland closed 5 years ago

jcoffland commented 8 years ago

This error is seen on Windows when starting CAMotics and prevents the program from running. It is caused by a missing atioglxx.dll file. The solution is to locate this file on the system and copy it to the CAMotics directory:

This was discovered and solved by darylspitfire:

I found a program that produced the same error !
It was an OpenGL tester named GFXBENCH_GL.EXE version 4.0
But it first produce another error box where I found a clue... it mentioned that Doom3 had a problem that also made errors and wouldn't run.
After I dismissed THAT pop-up error box, then the same LoadLibrary...193 error box popped up (then it exited back to the desktop).

The clue was something to do (in Doom3 - which I do not have - in fact I have no games even similar to that) where the new version of the ATI OpenGL dll file had an issue. That file was named atioglxx.dll and was supposed to be in system32 and syswow64 but I did not find that file anywhere on my system. In fact I looked for ati*.dll and found nothing with an OG or OGL or "open*" along with "ati" or "radeon".

Rather than copying it into those folders and registering it I just copied it into your Camotics folder (where I assume your code looks first for anything) and VOILA Camotics started up with no errors !
jcoffland commented 8 years ago

Potential solution found on http://forums.steampowered.com/:

  1. Browse to https://steamcommunity.com/linkfilter/http://support.amd.com/US/GPUDOWNLOAD/WINDOWS/Pages/downloads.aspx and select your operating system. On the right there is a small menu containing a link to previous drivers.
  2. Download the driver of your choice. For me, the 11.6 and 11.8 give playable (albeit low fps) results, and earlier versions than 11.6 wont launch.
  3. The driver comes as an autoextracter. Let the files extract and then cancel the install program when this comes up.
  4. Browse to the folder where you extracted the files. The default location is c:/ATI/support or c:/AMD.
  5. The driver can be found in a subfolder of the driver folder, usually something like c:/ATI/support/amd-catalyst-11-6-yada-yada-whatever/Packages/Drivers/Display/W7_INF/Bxxxxxx/
  6. In this folder you will find a file called atioglxx.dl_, which is a compressed dll. It can be unpacked using 7zip (and probably other similar programs, i haven't tried), giving you the atioglxx.dll.
  7. Put the atioglxx.dll in your /Program Files (x86)/CAMotics/ [sic] folder and hey presto! you're good to go (well good-ish untill ati or id comes up with a better solution).
jcoffland commented 5 years ago

Please try this again with the new v1.2.0 release. I believe it is fixed.