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. Visual Basic
  4. Global Error Handler

Global Error Handler

Scheduled Pinned Locked Moved Visual Basic
csharpdata-structureshelp
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.
  • K Offline
    K Offline
    kingspawn
    wrote on last edited by
    #1

    I'm looking for a solution to handle all unhandled errors within a VB.NET application. I would like it to log information such as, error number, line number, call stack, variables and values, etc.. Basically as much information as possible. If someone knows where I can get information on the best way to do this, has some sample code or knows of an available product (commercial or freeware) I would appreciate knowing about it. Thanks

    J 1 Reply Last reply
    0
    • K kingspawn

      I'm looking for a solution to handle all unhandled errors within a VB.NET application. I would like it to log information such as, error number, line number, call stack, variables and values, etc.. Basically as much information as possible. If someone knows where I can get information on the best way to do this, has some sample code or knows of an available product (commercial or freeware) I would appreciate knowing about it. Thanks

      J Offline
      J Offline
      John Kuhn
      wrote on last edited by
      #2

      Microsoft create some stuff called the "Application Blocks for .NET" a while back. One of those was called "Exception Management". They're complex, but they're free. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

      S 1 Reply Last reply
      0
      • J John Kuhn

        Microsoft create some stuff called the "Application Blocks for .NET" a while back. One of those was called "Exception Management". They're complex, but they're free. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

        S Offline
        S Offline
        SimonCampbell
        wrote on last edited by
        #3

        I have a simple class which does all this for you. When your program initialises, you do this: If (Not System.Diagnostics.Debugger.IsAttached) Then ExceptionManager.Instance().AppName = "YourAppNameHere" End If The class then pops up a dialog when an exception occurs, showing the stack-trace, error message, etc, and on closing that dialog, a new instance of the program can optionally be started. You don't have to have the Debugger.IsAttached test, but it means that the exception handler won't pop up if you are debugging in the IDE. Let me know if it sounds like what you need.

        J K 2 Replies Last reply
        0
        • S SimonCampbell

          I have a simple class which does all this for you. When your program initialises, you do this: If (Not System.Diagnostics.Debugger.IsAttached) Then ExceptionManager.Instance().AppName = "YourAppNameHere" End If The class then pops up a dialog when an exception occurs, showing the stack-trace, error message, etc, and on closing that dialog, a new instance of the program can optionally be started. You don't have to have the Debugger.IsAttached test, but it means that the exception handler won't pop up if you are debugging in the IDE. Let me know if it sounds like what you need.

          J Offline
          J Offline
          John Kuhn
          wrote on last edited by
          #4

          Sounds simple enough. Perhaps you might direct this to the attention of the person who posted the original query; by replying to my reply, the message went to me instead of him. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

          1 Reply Last reply
          0
          • S SimonCampbell

            I have a simple class which does all this for you. When your program initialises, you do this: If (Not System.Diagnostics.Debugger.IsAttached) Then ExceptionManager.Instance().AppName = "YourAppNameHere" End If The class then pops up a dialog when an exception occurs, showing the stack-trace, error message, etc, and on closing that dialog, a new instance of the program can optionally be started. You don't have to have the Debugger.IsAttached test, but it means that the exception handler won't pop up if you are debugging in the IDE. Let me know if it sounds like what you need.

            K Offline
            K Offline
            kingspawn
            wrote on last edited by
            #5

            It sounds exactly like what I need. Would it be possible for me to get a copy of it. If so, I'd really appreciate it. Thanks, Wayne

            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