About Store Forum Documentation Contact



Post Reply 
Exception Handling Mini Dump
Author Message
fatcoder Offline
Member

Post: #1
Exception Handling Mini Dump
I would like to set a function to capture exceptions and generate a mini dump crash report at runtime (outside of the debugger), like this.

Code:
void MiniDump(unsigned int nExceptionCode, EXCEPTION_POINTERS *pException) { ... }

void InitPre() { _set_se_translator(MiniDump); }

The problem is that EXCEPTION_POINTERS is defined in winnt.h. I don't want to include windows headers, would rather stick to EE headers for better cross-platform support.

Is there any chance of getting something like this included in EE?
01-20-2014 08:13 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Exception Handling Mini Dump
Hi,

from what I see '_set_se_translator' is only Windows function?

So you may as well do just:
#ifdef WINDOWS
include winnt...
#endif
in your codes (if 1.0)

or in custom "headers.h" file to be included in 2.0 by app properties

and in the codes for InitPre
#ifdef WINDOWS
_set_se_translator(..)
#endif
01-20-2014 08:50 AM
Find all posts by this user Quote this message in a reply
Post Reply