[Qt-interest] [OT] RE: Catching terminal exceptions
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Mon Nov 16 07:38:43 CET 2009
Info wrote on Sunday, November 15, 2009 8:35 PM:
> I'm trying to implement a global exception handler to allow me to
> generate a crash report ...
This is somewhat off-topic, but to my knowledge you want to catch *signals*, and not (only) exceptions. Signals are raised when you access invalid memory, dereference null-pointers, divide by 0 (on some architectures/compiler flags this raises a signal, as well as other floating point conditions) etc., so you want to install a signal handler:
http://www.gnu.org/s/libc/manual/html_node/Signal-Handling.html
Especially these would be of interest:
http://www.gnu.org/s/libc/manual/html_node/Program-Error-Signals.html#Program-Error-Signals
Refer e.g. to the implementation off http://www.codeproject.com/KB/debug/XCrashReportPt4.aspx (Win32)
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list