windowsfault

How to handle seg faults under Windows?


How can a Windows application handle segmentation faults? By 'handle' I mean intercept them and perhaps output a descriptive message. Also, the ability to recover from them would be nice too, but I assume that is too complicated.


Solution

  • Use SEH for early exception handling, and use SetUnhandledExceptionFilter to show a descriptive message.