![]() |
Plasma Engine
2.0
|
A default implementation of plCrashHandler that tries to write a mini-dump and prints the callstack. More...
#include <CrashHandler.h>
Classes | |
struct | PathFlags |
Public Member Functions | |
void | SetFullDumpFilePath (plStringView sFullAbsDumpFilePath) |
Sets the raw path for the dump-file to write. | |
void | SetDumpFilePath (plStringView sAbsDirectoryPath, plStringView sAppName, plBitflags< PathFlags > flags=PathFlags::Default) |
Sets the dump-file path to "{szAbsDirectoryPath}/{szAppName}_{cur-date}.tmp". | |
void | SetDumpFilePath (plStringView sAppName, plBitflags< PathFlags > flags=PathFlags::Default) |
Sets the dump-file path to "{plOSFile::GetApplicationDirectory()}/{szAppName}_{cur-date}.tmp". | |
virtual void | HandleCrash (void *pOsSpecificData) override |
Static Public Attributes | |
static plCrashHandler_WriteMiniDump | g_Instance |
Protected Member Functions | |
virtual bool | WriteOwnProcessMiniDump (void *pOsSpecificData) |
virtual void | PrintStackTrace (void *pOsSpecificData) |
Protected Attributes | |
plString | m_sDumpFilePath |
Additional Inherited Members | |
![]() | |
static void | SetCrashHandler (plCrashHandler *pHandler) |
static plCrashHandler * | GetCrashHandler () |
A default implementation of plCrashHandler that tries to write a mini-dump and prints the callstack.
To use it, call plCrashHandler::SetCrashHandler(&plCrashHandler_WriteMiniDump::g_Instance); Do not forget to also specify the dump-file path, otherwise writing dump-files is skipped.
|
overridevirtual |
Implements plCrashHandler.