`
aigo
  • 浏览: 2674689 次
  • 性别: 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.

分享到:
评论

相关推荐

    c++ 连接 mysql 官方文档

    ### c++连接mysql官方文档知识点总结 #### MySQL C++ Driver Based on JDBC 4.0 Specification MySQL Connector/C++ 是由 Sun Microsystems 开发的最新连接器之一,为 C++ 应用程序提供了一个面向对象的应用程序...

    一个跨平台的CString源码

    // - Thanks to Jason Mills for catching a case where CString was // more forgiving in the Delete() function than I was. // // 2001-JUN-06 - I was violating the Standard name lookup rules ...

    C++ How to Program, 10th Edition

    C++ How to Program presents leading-edge computing technologies in a friendly manner appropriate for introductory college course sequences, based on the curriculum recommendations of two key ...

    Catching header messages in a CListView捕捉CListView的头消息

    在Windows编程中,CListView是MFC(Microsoft Foundation Classes)框架提供的一种用于创建列表视图控件的类。它允许用户以列表、图标、详细信息等多种形式显示数据,并且可以处理用户的各种交互操作,如排序、选择...

    Visual C++ 编程资源大全(英文控件)

    34.zip Subclassing the List View Control using MFC 用MFC写的列表视图子类(3KB)<END><br>19,35.zip Catching header messages in a CListView 捕捉CListView的头消息(2KB)<END><br>20,36.zip How ...

    C# - CSharp 12 in a Nutshell The Definitive Reference

    ### C# 12 in a Nutshell:The Definitive Reference #### 1. Introducing C# and .NET **Object Orientation** C# is an object-oriented programming (OOP) language, which means that it structures code ...

    more exceptional c++.rar

    异常处理是C++中的一项重要特性,它允许程序员在遇到预期之外的情况时,通过抛出异常(throwing exceptions)来中断正常流程,并在程序的其他地方捕获(catching exceptions)并处理这些异常。这种方式比传统的错误...

    Android代码-CatchUp

    CatchUp An app for catching up on things. https://medium.com/@sweers/catching-up-on-catchup-introduction-7581c099f4bc ...in short form, and intelligent deeplinking into dedicated apps if you wa

    EurekaLog_7.5.0.0_Enterprise

    5)....Added: Exception2HRESULT in EAppDLL to simplify developing DLLs with "DLL" profile 6)....Added: Use ShellExecute option for mailto send method 7)....Added: "Mandatory e-mail only when sending" ...

    JSTL详细标签库介绍

    target=_blank>NoClassDefDoundErr与ClassNotFoundException区别</A> <LI><A title=深入MIDIetStateChangeException href="http://www.jspcn.net/htmlnews/11500199894531654.html" target=_blank>深入...

    Springer.The.Developer’s.Guide.to.Debugging.2008.pdf

    4.1 Memory Management in C/C++ – Powerful but Dangerous . . . . 33 4.1.1 Memory Leaks . . . . . . . . . 34 4.1.2 Incorrect Use of Memory Management . . . . 34 4.1.3 Buffer Overruns . . . . . . . . . ...

    高中英语 知识点大全74 in the hope of

    例如:"They got up very early in the hope of catching the first bus." 这句话中,“in the hope of catching the first bus”表明了他们早起的原因,即希望能赶上第一班公交车。 此外,"in the hope of"还可以...

    Windows Mobile Camera catching

    在Windows Mobile平台上,开发C++程序来实现视频捕获和照相功能是一项技术性很强的任务。Windows Mobile操作系统,虽然现在已不再主流,但在过去广泛应用于智能手机和平板电脑,特别是企业级应用。它提供了丰富的API...

    Packet filtering - Catching the cool packets.rar

    Packet filtering - Catching the cool packets.rar

    java7帮助文档

    JDK 7 is a superset of JRE 7, and contains everything that is in JRE 7, plus tools such as the compilers and debuggers necessary for developing applets and applications. JRE 7 provides the libraries, ...

    demonstrate File I/O, user input, and output manipulation

    read them in from a file, printing them to the console. - Complete a Mad Libs - style word game. Read from a file the sentence and the parts of speech of the words needed (noun, adjective, etc.), ask ...

    Debugging Malloc Lab: Detecting Memory-Related Errors

    The usual implementation of malloc and free are unforgiving to errors in their callers' code, including cases where the programmer overflows an array, forgets to free memory, or frees a memory block ...

    Packet Filtering: Catching the Cool Packets!

    This book is designed to support anyone who wants to work in networking with a focus on troubleshooting, optimization and security.

    The Ant Lion Optimizer.pdf

    as the random walk of ants, building traps, entrapment of ants in traps, catching preys, and re-building traps are implemented. The proposed algorithm is benchmarked in three phases. Firstly, a set of...

Global site tag (gtag.js) - Google Analytics