`
aigo
  • 浏览: 2540138 次
  • 性别: Icon_minigender_1
  • 来自: 宜昌
社区版块
存档分类
最新评论

Catching a DLL crash in C/C++

 
阅读更多

原文: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.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics