Hooking GPFs
-
I know it's possible to wrap my entire application in an exception handler so that when our code does something it's not supposed to do, I can pop up a dialog saying, "We're crashing, here's a log of the application state." I've even cut and pasted an example from MSDN, and I'm in the midst of trying to find that again. Can someone point me in the right direction? J
-
I know it's possible to wrap my entire application in an exception handler so that when our code does something it's not supposed to do, I can pop up a dialog saying, "We're crashing, here's a log of the application state." I've even cut and pasted an example from MSDN, and I'm in the midst of trying to find that again. Can someone point me in the right direction? J
Try SEH exception to hook GPFs. There are a few [articles](http://www.codeproject.com/cpp/index.asp#Exception Handling) on CP about this. Also search MSDN with SEH Exception to find more. // Fazlul
Get RadVC today! Play RAD in VC++ http://www.capitolsoft.com
-
Try SEH exception to hook GPFs. There are a few [articles](http://www.codeproject.com/cpp/index.asp#Exception Handling) on CP about this. Also search MSDN with SEH Exception to find more. // Fazlul
Get RadVC today! Play RAD in VC++ http://www.capitolsoft.com
Bingo! Thanks a bunch. I knew it was around... J
-
I know it's possible to wrap my entire application in an exception handler so that when our code does something it's not supposed to do, I can pop up a dialog saying, "We're crashing, here's a log of the application state." I've even cut and pasted an example from MSDN, and I'm in the midst of trying to find that again. Can someone point me in the right direction? J
-
Yah, as it turns out, this is what I need. After reading a bunch on SEH, I feel enlightened, but for what I need, SetUnhandledExceptionFilter() is perfect. Thank you. J