IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    解决 RtlCreateActivationContext() failed 0xc000000d

    金庆发表于 2014-04-29 03:15:00
    love 0

    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



    金庆 2014-04-29 11:15 发表评论


沪ICP备19023445号-2号
友情链接