Share via

Error "LoadLibrary failed with error 126: The module could not be found" when launching programs

Anonymous
2012-06-26T01:44:56+00:00

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"?

Windows for home | Previous Windows versions | Performance and system failures

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.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2013-01-22T10:11:25+00:00

    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.

    Was this answer helpful?

    300+ people found this answer helpful.
    0 comments No comments

Answer accepted by question author

  1. Anonymous
    2013-04-29T15:58:02+00:00

    type cmd and click on the black box icon for it...

    Was this answer helpful?

    100+ people found this answer helpful.
    0 comments No comments

22 additional answers

Sort by: Most helpful
  1. Anonymous
    2016-03-09T20:58:06+00:00

    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

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2013-12-23T09:59:28+00:00

    thanks a lot! my problem was Solidworks 2013 and it worked even without restart.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Deleted

    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