![]() |
Plasma Engine
2.0
|
Helper class to manage the top level exception handler. More...
#include <CrashHandler.h>
Public Member Functions | |
virtual void | HandleCrash (void *pOsSpecificData)=0 |
Static Public Member Functions | |
static void | SetCrashHandler (plCrashHandler *pHandler) |
static plCrashHandler * | GetCrashHandler () |
Helper class to manage the top level exception handler.
A default exception handler is provided but not set by default. The default implementation will write the exception and callstack to the output and create a memory dump using WriteDump that create a dump file in the folder specified via SetExceptionHandler.
This class allows to hook into the OS top-level exception handler to handle application crashes
Derive from this class to implement custom behavior. Call plCrashHandler::SetCrashHandler() to register which instance to use.
For typical use-cases use plCrashHandler_WriteMiniDump::g_Instance.