vs2010 ;, Debug应用程序无法正常启动(0xc0000000d).

来源:互联网 发布:电脑背包 知乎 编辑:程序博客网 时间:2024/06/01 07:49

vs2010 ;, Debug应用程序无法正常启动(0xc0000000d).

背景: 今天遇到这样的一个诡异问题: 用一台机上生成的.dll 文件不能用(Debug模式下生成的), 另一台机生成就..    最终经过多次发现,原来是编译器本身设置的问题,不是程序代码的问题..

    我已经清理了.icph ,就生成的debug 等文件夹, 都没有成功..     注: 在Release 情况下没有出现这种情况 …

 

解决的方案参考:http://stackoverflow.com/questions/5648391/c-application-fails-to-start-correctly-0xc000000d ,

原文中有这样的一段话::

 

1down vote

I got the same phenomenon suddenly without a warning on Win7 / VS2010 / C++. Debug App couldn’t be launched, got 0xC000000D at initializing and loading multiple dlls. Found one base dll of my own responsible, played around with linker settings. Modifying
settings, incremential rebuild -> app starts, rebuild all -> app crashes again. After setting “generate manifest” to “no” in the linker settings the sample app works, but the main app  still crashes. After setting“generate manifest” to “no”
for the most of my dlls -> the app starts in debug mode again. The stuff is very spurious, because some dlls need the modified settings others do not.

 

 

解决方法:属性>>配置属性>>链接器>>清单文件>>生成清单     那个选成 “否” 就行了…


原地址:http://www.xuebuyuan.com/1074532.html

0 0
原创粉丝点击