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. Adv: How does e.g. Dr Watson hook into an exception

Adv: How does e.g. Dr Watson hook into an exception

Scheduled Pinned Locked Moved C / C++ / MFC
3 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.
  • E Offline
    E Offline
    EiSl
    wrote on last edited by
    #1

    Hello fellow programmers, I was wondering how a program like Dr.Watson is hooked into the exception handling mechanism. This question actually has a background: For my next project, they've asked me to do some bug-hunting in a HUGE (multi threaded) service process (netto > 1 mil. lines of code over 10.000 files). This peace of code (telecommunication related) has been ported from embedded system, and NO active usage of structured exception handling is used (more C than C++ oriented). The problem is that in some situations an exception occures, and we want to be able to produce *any* possible kind of info. But since the Windows NT exception handling mechanism is taking over everything, no way of getting some runtime-info. And also: it is a service process, so no interface to user exists. My idea was to implement a kind of 'general exception handling' function within our application, dumping possible information to a file. Other suggestions are also welcome, or links to site/topics regarding this topic. Cheers, EiSl

    C T 2 Replies Last reply
    0
    • E EiSl

      Hello fellow programmers, I was wondering how a program like Dr.Watson is hooked into the exception handling mechanism. This question actually has a background: For my next project, they've asked me to do some bug-hunting in a HUGE (multi threaded) service process (netto > 1 mil. lines of code over 10.000 files). This peace of code (telecommunication related) has been ported from embedded system, and NO active usage of structured exception handling is used (more C than C++ oriented). The problem is that in some situations an exception occures, and we want to be able to produce *any* possible kind of info. But since the Windows NT exception handling mechanism is taking over everything, no way of getting some runtime-info. And also: it is a service process, so no interface to user exists. My idea was to implement a kind of 'general exception handling' function within our application, dumping possible information to a file. Other suggestions are also welcome, or links to site/topics regarding this topic. Cheers, EiSl

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Buy John Robbins Debugging Applications (Microsoft Press). I've read it once, so I know it covers everything you want to know and more, but I've not had enough time to read it often enough to actually answer the question without looking it up. I doubt I could do it justice in any case, you need this book. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

      1 Reply Last reply
      0
      • E EiSl

        Hello fellow programmers, I was wondering how a program like Dr.Watson is hooked into the exception handling mechanism. This question actually has a background: For my next project, they've asked me to do some bug-hunting in a HUGE (multi threaded) service process (netto > 1 mil. lines of code over 10.000 files). This peace of code (telecommunication related) has been ported from embedded system, and NO active usage of structured exception handling is used (more C than C++ oriented). The problem is that in some situations an exception occures, and we want to be able to produce *any* possible kind of info. But since the Windows NT exception handling mechanism is taking over everything, no way of getting some runtime-info. And also: it is a service process, so no interface to user exists. My idea was to implement a kind of 'general exception handling' function within our application, dumping possible information to a file. Other suggestions are also welcome, or links to site/topics regarding this topic. Cheers, EiSl

        T Offline
        T Offline
        Tomasz Sowinski
        wrote on last edited by
        #3

        > I was wondering how a program like Dr.Watson > is hooked into the exception handling mechanism. It's actually a debugger. I suggest reading April 1997 issue of MSJ; there's a column titled 'Under The Hood' by Matt Pietrek. The article presents a way to set the default exception filter per-thread basis. It should be in your VC++ help (look in the 'Periodicals' section), if it's not there, go to MSDN Online. Tomasz Sowinski -- http://www.shooltz.com

        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