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

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

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

 

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

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

 

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.

 

 

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

 

 

  

 

 

 

 

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值