Hello,
I'm looking for a (cross platform) way of catching various crashes (double free, referencing invalid memory, division by zero, etc...) so that I can log them.
Currently I have my own message handler installed to catch standard Qt messages (QtDebugMsg, QtWarningMsg, QtCriticalMsg, QtFatalMsg). This handler pushes the messages to stderr, but also logs them to a log file.
My hope is I can also catch non Qt errors and send them through the same message handler. The thing is I'm not sure of the correct way to do this (if there even is a correct way).
Bookmarks