金庆的专栏

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  423 随笔 :: 0 文章 :: 454 评论 :: 0 Trackbacks

gtest 示例的Debug版启动报错:

Debug输出如下:

'sample1_unittest.exe': Loaded 'D:\LibSrc\gtest_1.7.0_build\Debug\sample1_unittest.exe', Symbols loaded.
'sample1_unittest.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'sample1_unittest.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'sample1_unittest.exe': Loaded 'D:\LibSrc\gtest_1.7.0_build\Debug\gtest_main.dll', Symbols loaded.
SXS: RtlCreateActivationContext() failed 0xc000000d
LDR: LdrpWalkImportDescriptor() failed to probe D:\LibSrc\gtest_1.7.0_build\Debug\gtest_main.dll for its manifest, ntstatus 0xc000000d
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[3824] sample1_unittest.exe: Native' has exited with code -1073741811 (0xc000000d).

Rebuild无效,重装VC无效。

将Manifest输出改为No就好了。

估计是VC2010的错误。奇怪的是再次改回Yes后重建仍然是好的,同样的vcxproj输出不一样?

应该与系统也有关,可能重装系统就会好。其他机器没有该错误。


方法来自:http://blog.chenfeisoft.com/post/2013/06/10/SXS-RtlCreateActivationContext%28%29-failed-0xc000000d.aspx

SXS: RtlCreateActivationContext() failed 0xc000000d

by Administrator 10. 六月 2013 22:10

dll工程配置里将输出清单文件选为no, rebuild, 再改回yes

posted on 2014-04-29 11:15 金庆 阅读(791) 评论(0)  编辑 收藏 引用 所属分类: 1. C/C++

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理