如何查看谷歌protobuf日志?

时间:2017-05-04 03:29:48

标签: c++ visual-studio-2015 protocol-buffers

原因:

  1. 我使用protobuf dll链接,因为我希望我的dll很小。
  2. 我使用Windows API LoadLibrary()加载我的dll,它返回1114(ERROR_DLL_INIT_FAILED)。
  3. 我尝试使用Procmon来弄清楚发生了什么。
  4. 我在调用堆栈中看到类似的内容:
  5.   

    “16”,“ntdll.dll”,“RtlRaiseException + 0x2d9”,“0x7ffe5b0eb629”,“C:\ Windows \ System32 \ ntdll.dll”

         

    “17”,“KernelBase.dll”,“RaiseException + 0x68”,“0x7ffe58443c58”,“C:\ Windows \ System32 \ KernelBase.dll”

         

    “18”,“vcruntime140.dll”,“CxxThrowException + 0xc2”,“0x7ffe433c4462”,“C:\ Windows \ System32 \ vcruntime140.dll”

         

    “19”,“libprotobuf.dll”,“google :: protobuf :: internal :: LogMessage :: Finish + 0x128”,“0x7ffe39206ed8”,“C:\ Program Files ...... \ libprotobuf。 DLL“

         

    “20”,“libprotobuf.dll”,“google :: protobuf :: DescriptorPool :: InternalAddGeneratedFile + 0xd1”,“0x7ffe392541d1”,“C:\ Program Files ...... \ libprotobuf.dll”< / p>

    事实:

    1. 如果我使用protobuf静态链接,这个问题就消失了。
    2. protobuf版本是3.0.0
    3. 问题:

      是否可以查看google protobuf的日志? 我想知道根本原因。

0 个答案:

没有答案