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. AddVectoredExceptionHandler in Release

AddVectoredExceptionHandler in Release

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelpannouncement
6 Posts 2 Posters 4 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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Does AddVectoredExceptionHandler only run in debug, I just rebuilt my code in Release and it entered the SEH routine when I comment it out I dont have a problem Thanks

    L 1 Reply Last reply
    0
    • F ForNow

      Does AddVectoredExceptionHandler only run in debug, I just rebuilt my code in Release and it entered the SEH routine when I comment it out I dont have a problem Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Not according to AddVectoredExceptionHandler function (errhandlingapi.h) - Win32 apps | Microsoft Docs[^].

      F 1 Reply Last reply
      0
      • L Lost User

        Not according to AddVectoredExceptionHandler function (errhandlingapi.h) - Win32 apps | Microsoft Docs[^].

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        I guess the best thing to do is determine what the exception record pints to Thanks

        L 1 Reply Last reply
        0
        • F ForNow

          I guess the best thing to do is determine what the exception record pints to Thanks

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          As with all problems, debugging is the key.

          F 1 Reply Last reply
          0
          • L Lost User

            As with all problems, debugging is the key.

            F Offline
            F Offline
            ForNow
            wrote on last edited by
            #5

            This is the exception 0x4001000A This is a new exception Microsoft implemented in Windows 10 something to do with OutPutDebug String though I have that in program I check isdebuggerpresent so dont know why it was raised This is what I saw when googling

            Quote:

            Windows creates a new exception with RaiseException: DBG_PRINTEXCEPTION_WIDE_C (0x4001000A). This new exception code needs 4 parameters. For backwards compatibility it also requests the Ansi version of the string

            This is what I added to my SEH handler

            if (pExceptionPtrs->ExceptionRecord->ExceptionCode == 0x4001000A)
            return EXCEPTION_CONTINUE_EXECUTION;

            L 1 Reply Last reply
            0
            • F ForNow

              This is the exception 0x4001000A This is a new exception Microsoft implemented in Windows 10 something to do with OutPutDebug String though I have that in program I check isdebuggerpresent so dont know why it was raised This is what I saw when googling

              Quote:

              Windows creates a new exception with RaiseException: DBG_PRINTEXCEPTION_WIDE_C (0x4001000A). This new exception code needs 4 parameters. For backwards compatibility it also requests the Ansi version of the string

              This is what I added to my SEH handler

              if (pExceptionPtrs->ExceptionRecord->ExceptionCode == 0x4001000A)
              return EXCEPTION_CONTINUE_EXECUTION;

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Sorry, I have no experience of that error. Maybe this will help: Abnormal DBG_PRINTEXCEPTION_C (0x40010006) and DBG_PRINTEXCEPTION_WIDE_C (0x4001000A) - Code World[^].

              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