环境:
Win7 64bit+ VS2010+ OpenCV247
前几天还运行的好好的程序,今天突然出现了这个错误:
the application was unable to start correctly 0xc00007b
直接了当:
我这里错误的原因应该是64位与32位的兼容问题。
一开始opencv库都调用x64,不行。
全都换成x86,也不行。
后来是因为环境变量中必须同时加上x86和x64的bin文件目录才可以。
感谢:
http://bbs.csdn.net/topics/380057699
如果是其他人没解决问题,欢迎试试我试过的其他方法:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/96035692-9a50-40d4-a7d3-48bda87d11ec/the-application-was-unable-to-start-correctly-0xc000007b-click-ok-to-close-the-application-when?forum=vssetup
大体总结如下:
1. 查找替换DLL文件
The problem was due to 32/64-bit mismatches of various system dlls required by Visual studio. Somehow the dlls it needs got replaced by 64-bit versions that it couldn’t load.
Replacing the dlls mentioned below from a machine that is working solves the problem:
c:\Windows\SysWOW64\msvcp100.dll
c:\Windows\SysWOW64\msvcp100d.dll
c:\Windows\SysWOW64\msvcr100.dll
c:\Windows\SysWOW64\msvcr100_clr0400.dll
c:\Windows\SysWOW64\msvcr100d.dll
2. 整理磁盘
From your error 0xc000007b I found that the error means "STATUS_INVALID_IMAGE_FORMAT" which means Bad Image. I have a guess that your disk need to be fix so I suggest you do a disk check before other steps. But it may needs a very long time.
3. 下载安装c++ redistributable x86 或者x64
http://www.microsoft.com/en-us/download/details.aspx?id=14632
希望你也好运!解决问题的一瞬间好爽!!!