Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Hooking GPFs

Hooking GPFs

Scheduled Pinned Locked Moved C / C++ / MFC
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jamie Hale
    wrote on last edited by
    #1

    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

    F P 2 Replies Last reply
    0
    • J Jamie Hale

      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

      F Offline
      F Offline
      Fazlul Kabir
      wrote on last edited by
      #2

      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

      J 1 Reply Last reply
      0
      • F Fazlul Kabir

        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

        J Offline
        J Offline
        Jamie Hale
        wrote on last edited by
        #3

        Bingo! Thanks a bunch. I knew it was around... J

        1 Reply Last reply
        0
        • J Jamie Hale

          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

          P Offline
          P Offline
          pba_
          wrote on last edited by
          #4

          Check in MSDN for ::SetUnhandledExceptionFilter. It works on W95 > , NT3.5 >.

          J 1 Reply Last reply
          0
          • P pba_

            Check in MSDN for ::SetUnhandledExceptionFilter. It works on W95 > , NT3.5 >.

            J Offline
            J Offline
            Jamie Hale
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups