The application was unable to start correctly (0xc000007b)

前端 未结 17 1318
無奈伤痛
無奈伤痛 2020-11-22 13:12

I have a client/server app which I have been developing on a single PC. Now it needs two serial ports, so I borrowed a PC from a friend.

When I build my app and try

相关标签:
17条回答
  • 2020-11-22 13:52

    Just solved this problem for my personal project (thanks to Dries for that). For me it was because the project path was too long. After saving the .sln to a shorter path (C:/MyProjects) and compiling from there it ran without the error.

    0 讨论(0)
  • 2020-11-22 13:57

    A load time dependency could not be resolved. The easiest way to debug this is to use Dependency Walker. Use the Profile option to get diagnostics output of the load process. This will identify the point of failure and should guide you to a solution.

    The most common cause of this error is trying to load a 64 bit DLL into a 32 bit process, or vice versa.

    0 讨论(0)
  • 2020-11-22 13:59

    It has been mentioned in earlier answers that using dependency walker is the way to go, in my case (my application keeps failing with the error code), dependency walker showed a few dll that are NOT relevant!

    Finally figured out that I can run profiling by going to "profile" menu and it will run the application and stop at the exact dll that's cause the problem! I found out a 32bit dll was picked because of path and fixed it.

    0 讨论(0)
  • 2020-11-22 14:01

    Actually this error indicates to an invalid image format. However, why this is happening and what the error code usually means? Actually this could be appear when you are trying to run a program that is made for or intended to work with a 64 bit Windows operating system, but your computer is running on 32 bit Operating system.

    Possible Reasons:

    • Microsoft Visual C++
    • Need to restart
    • DirectX
    • .NET Framework
    • Need to Re-Install
    • Need to Run the application as an administrator

    Source: http://www.solveinweb.com/solved-the-application-was-unable-to-start-correctly-0xc000007b-click-ok-to-close-the-application/

    0 讨论(0)
  • 2020-11-22 14:01

    I have seen the error trying to run VC++ debug executable on a machine which did not have Visual C++ installed. Building a release version and using that fixed it.

    0 讨论(0)
提交回复
热议问题