for X64 based systems:
a. Go to the command prompt as described above. Run it as administrator.
b. Type in the following command:
*C:\Windows\System32* copy atio6axx.dll .dll
c. Restart the PC, and check again for the issue.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Original title: <Why do I get LoadLibrary failed with error 126?>
In starting some programs, the program partially starts, then a pop-up message shows up saying "LoadLibrary failed with error 126: The module could not be found". When you click the "OK" button, the whole program shuts down. I've had this issue with several graphics applications like PSP and Rhinoceros 3D.
Any suggestions what may be causing this "error 126"?
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
for X64 based systems:
a. Go to the command prompt as described above. Run it as administrator.
b. Type in the following command:
*C:\Windows\System32* copy atio6axx.dll .dll
c. Restart the PC, and check again for the issue.
Answer accepted by question author
type cmd and click on the black box icon for it...
I was getting the exact same error using National Instruments LabWindows/CVI (a "C" like IDE) and a DLL that I had written.
In the end the problem was most likely caused by increased security placed on several of the directories on the C:\ drive that LoadLib attempts to write to. I was able to work around this problem by changing the call to:
LoadLibraryEx(libPath,NULL,,LOAD_WITH_ALTERED_SEARCH_PATH)
This call worked perfectly in the exact same situation that
LoadLibrary(libPath)
failed.
Carl
thanks a lot! my problem was Solidworks 2013 and it worked even without restart.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more