The application was unable to start correctly (0xc000007b)

前端 未结 17 1360
無奈伤痛
無奈伤痛 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:44

    This may be a case where debugging the debugger might be useful. Essentially if you follow the instructions here you can run two ide's and one will debug into the other. If you un your application in one, you can sometimes catch errors that you otherwise miss. Its worth a try.

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

    I just ran into this issue. I searched for "C++" under my "Apps & Features" in Windows 10 control panel and noticed that some kind of update had just run a few days prior and installed VC++ Redistributable 2012-2017. The app that was running into the error message only required VC++ 2010. I uninstalled all of them and then reinstalled just 2010 x86/x64, and the error went away and the application functioned as expected.

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

    It is possible that you have multiple versions of the dll(s) on your system. You can search your system to find out. The issue may be solved by simply changing the order of the directories in your path. This was my issue. (Cannot run Qt Creator GUI outside of Qt. "The application was unable to start correctly (0xc000007b)" error)

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

    To start, I would suggest to test whether there is a problem between your application and its dependencies using dependency walker

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

    Also download and unzip "Dependencies" into same folder where you put the wget.exe from

    http://gnuwin32.sourceforge.net/packages/wget.htm

    You will then have some lib*.dll files as well as wget.exe in the same folder and it should work fine.

    (I also answered here https://superuser.com/a/873531/146668 which I originally found.)

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

    In my case the error occurred when I renamed a DLL after building it (using Visual Studio 2015), so that it fits the name expected by an executable, which depended on the DLL. After the renaming the list of exported symbols displayed by Dependency Walker was empty, and the said error message "The application was unable to start correctly" was displayed.

    So it could be fixed by changing the output file name in the Visual Studio linker options.

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