当前位置:首页 > 开发 > 编程语言 > C/C++ > 正文

Catching a DLL crash in C/C++

发表于: 2013-12-24   作者:aigo   来源:转载   浏览:
摘要: 原文:http://stackoverflow.com/questions/4939861/catching-a-dll-crash-in-c-c   You can catch AVs with the __try and __except keywords in the MSVC compiler. Not all that useful, you have no idea wh

原文:http://stackoverflow.com/questions/4939861/catching-a-dll-crash-in-c-c

 

You can catch AVs with the __try and __except keywords in the MSVC compiler. Not all that useful, you have no idea what kind of damage was done. The state of your program might well be corrupted. The heap might be blown for example, causing subsequent random failure. Hosting the DLL in its own process and using IPC to talk to it is the only decent approach.

Catching a DLL crash in C/C++

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号