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. The Lounge
  3. Disabling the pesky "xyz program has encountered an error..."

Disabling the pesky "xyz program has encountered an error..."

Scheduled Pinned Locked Moved The Lounge
comwindows-adminhelpquestioncareer
23 Posts 17 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.
  • L leckey 0

    1. Press [Windows][Break] to display the System Properties dialog box. 2. Select the Advanced tab and click the Error Reporting button. 3. When you see the Error Reporting dialog box, select the Disable Error Reporting option. (If you don’t want to see any type of error message, clear the But Notify Me When Critical Errors Occur check box.) 4. Click OK twice — once to close the Error Reporting dialog box and once to close the System Properties dialog box. [^] I think this is what you are talking about; I had the same annoying problem.

    Blog link to be reinstated at a later date.

    C Offline
    C Offline
    Christopher Duncan
    wrote on last edited by
    #4

    Dude (or Dudette, hard to tell) - you rock. :-D Thanks! [edit] My Paranoid Hubby? Is this a new user name? Didn't think to look at the profile... :doh: [/edit]

    Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

    modified on Monday, September 1, 2008 6:07 PM

    G 1 Reply Last reply
    0
    • P Pete OHanlon

      Let's add it to the featurelist here[^]. BlueOrb should do it.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      C Offline
      C Offline
      Christopher Duncan
      wrote on last edited by
      #5

      Oh, wow, this is great! [hurriedly grabs his long list of enhancement requests]

      Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

      1 Reply Last reply
      0
      • C Christopher Duncan

        Dude (or Dudette, hard to tell) - you rock. :-D Thanks! [edit] My Paranoid Hubby? Is this a new user name? Didn't think to look at the profile... :doh: [/edit]

        Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

        modified on Monday, September 1, 2008 6:07 PM

        G Offline
        G Offline
        Gary Kirkham
        wrote on last edited by
        #6

        Dudette

        Gary Kirkham Forever Forgiven and Alive in the Spirit "Truly, truly, I say to you, he who hears My word, and believes Him who sent Me, has eternal life, and does not come into judgment, but has passed out of death into life. Me blog, You read

        C 1 Reply Last reply
        0
        • G Gary Kirkham

          Dudette

          Gary Kirkham Forever Forgiven and Alive in the Spirit "Truly, truly, I say to you, he who hears My word, and believes Him who sent Me, has eternal life, and does not come into judgment, but has passed out of death into life. Me blog, You read

          C Offline
          C Offline
          Christopher Duncan
          wrote on last edited by
          #7

          :doh: I didn't realize it was [name changed to protect the innocent] until I looked at the profile...

          Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

          modified on Monday, September 1, 2008 6:14 PM

          G 1 Reply Last reply
          0
          • C Christopher Duncan

            :doh: I didn't realize it was [name changed to protect the innocent] until I looked at the profile...

            Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

            modified on Monday, September 1, 2008 6:14 PM

            G Offline
            G Offline
            Gary Kirkham
            wrote on last edited by
            #8

            shhh, I thought she was incognito

            Gary Kirkham Forever Forgiven and Alive in the Spirit "Truly, truly, I say to you, he who hears My word, and believes Him who sent Me, has eternal life, and does not come into judgment, but has passed out of death into life. Me blog, You read

            C 1 Reply Last reply
            0
            • G Gary Kirkham

              shhh, I thought she was incognito

              Gary Kirkham Forever Forgiven and Alive in the Spirit "Truly, truly, I say to you, he who hears My word, and believes Him who sent Me, has eternal life, and does not come into judgment, but has passed out of death into life. Me blog, You read

              C Offline
              C Offline
              Christopher Duncan
              wrote on last edited by
              #9

              :suss: Kinda hard to be incognito when you give your name in your user profile... :-D

              Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

              L 1 Reply Last reply
              0
              • C Christopher Duncan

                I don't know if there's some registry setting for this or not. Couldn't turn up anything on Google, so I thought I'd turn to more intelligent sources. There are times when a program meets with an untimely demise. When it crashes, life in Windows comes to somewhat of a halt until you press the OK button on this dialog box which tells you what you already knew - your program is AFU. Sometimes, however, you just want the darned thing to die - without any user interaction required. This dialog prevents Windows from shutting down, among other things, so it can be a bit of a PITA. Does anyone know any clever little tricks to tell Windows not to display this stupid GPF dialog box?

                Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

                E Offline
                E Offline
                Ennis Ray Lynch Jr
                wrote on last edited by
                #10

                Wrap a try catch around your application run method?

                Need a C# Consultant? I'm available.
                Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                G K 2 Replies Last reply
                0
                • C Christopher Duncan

                  :suss: Kinda hard to be incognito when you give your name in your user profile... :-D

                  Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

                  L Offline
                  L Offline
                  leckey 0
                  wrote on last edited by
                  #11

                  I only agreed to change my user name and remove by blog link. We would have to renegotiate for that. I've had a few people wonder until they read the bio. I wanted to leave that so common users still knew who I was.

                  Blog link to be reinstated at a later date.

                  E R 2 Replies Last reply
                  0
                  • E Ennis Ray Lynch Jr

                    Wrap a try catch around your application run method?

                    Need a C# Consultant? I'm available.
                    Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                    G Offline
                    G Offline
                    Garth J Lancaster
                    wrote on last edited by
                    #12

                    does that always work ? I read a bit about minidump's recently and they CAN be intercepted/handled programatically (rather than the standard 'report to MS'), but I though it was more involved than that (unless Im off on a tangent) [modified] - yes, I do know that exceptions != minidumps .. people may interested in this http://www.naughter.com/exceptionlogger.html[^] from PJ Naughter, which can trap both. 'g'

                    modified on Monday, September 1, 2008 10:16 PM

                    1 Reply Last reply
                    0
                    • L leckey 0

                      1. Press [Windows][Break] to display the System Properties dialog box. 2. Select the Advanced tab and click the Error Reporting button. 3. When you see the Error Reporting dialog box, select the Disable Error Reporting option. (If you don’t want to see any type of error message, clear the But Notify Me When Critical Errors Occur check box.) 4. Click OK twice — once to close the Error Reporting dialog box and once to close the System Properties dialog box. [^] I think this is what you are talking about; I had the same annoying problem.

                      Blog link to be reinstated at a later date.

                      M Offline
                      M Offline
                      muzzdeni
                      wrote on last edited by
                      #13

                      What about for vista, dosent seem to exsit there, or maybe I dont exsist..........Hard to tell these days.

                      1 Reply Last reply
                      0
                      • E Ennis Ray Lynch Jr

                        Wrap a try catch around your application run method?

                        Need a C# Consultant? I'm available.
                        Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                        K Offline
                        K Offline
                        kurt place
                        wrote on last edited by
                        #14

                        hahahahaha! LOL! sorry that was all that came to mind.

                        1 Reply Last reply
                        0
                        • C Christopher Duncan

                          I don't know if there's some registry setting for this or not. Couldn't turn up anything on Google, so I thought I'd turn to more intelligent sources. There are times when a program meets with an untimely demise. When it crashes, life in Windows comes to somewhat of a halt until you press the OK button on this dialog box which tells you what you already knew - your program is AFU. Sometimes, however, you just want the darned thing to die - without any user interaction required. This dialog prevents Windows from shutting down, among other things, so it can be a bit of a PITA. Does anyone know any clever little tricks to tell Windows not to display this stupid GPF dialog box?

                          Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

                          M Offline
                          M Offline
                          Maarten1977
                          wrote on last edited by
                          #15

                          How about the AppDomain.UnhandledException Event? http://msdn.microsoft.com/en-us/library/system.appdomain.unhandledexception.aspx[^]

                          1 Reply Last reply
                          0
                          • L leckey 0

                            1. Press [Windows][Break] to display the System Properties dialog box. 2. Select the Advanced tab and click the Error Reporting button. 3. When you see the Error Reporting dialog box, select the Disable Error Reporting option. (If you don’t want to see any type of error message, clear the But Notify Me When Critical Errors Occur check box.) 4. Click OK twice — once to close the Error Reporting dialog box and once to close the System Properties dialog box. [^] I think this is what you are talking about; I had the same annoying problem.

                            Blog link to be reinstated at a later date.

                            M Offline
                            M Offline
                            M Towler
                            wrote on last edited by
                            #16

                            I too would like to disable the 'report close - yes no' notification when applications crash, but these instructions do not fix the issue. What this does is disables whe dialog where it asks you to notify microsoft of the error; you still get the halt dialog reporting the fatal error. What I would like is for the application to exit silently with no dialogs at all, which is proving much more difficult. My latest attempt was to add handlers for microsoft's own exception mechanism, which picks up access violations and hardware related reports as well as program errors, but even this does not cover everything.

                            R 1 Reply Last reply
                            0
                            • L leckey 0

                              I only agreed to change my user name and remove by blog link. We would have to renegotiate for that. I've had a few people wonder until they read the bio. I wanted to leave that so common users still knew who I was.

                              Blog link to be reinstated at a later date.

                              E Offline
                              E Offline
                              El Corazon
                              wrote on last edited by
                              #17

                              My Paranoid Hubby wrote:

                              I wanted to leave that so common users still knew who I was.

                              hehehe, well... I changed my name, but left the profile exactly the same. Most folks caught on, but a few did actually get confused. And a few forgot after a few months. Strange how much a name becomes the person, but then... this is the internet, all we really have are names. Change the name and it is like putting on glasses to become Clark Kent.... :-D

                              _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb) John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."

                              S 1 Reply Last reply
                              0
                              • C Christopher Duncan

                                I don't know if there's some registry setting for this or not. Couldn't turn up anything on Google, so I thought I'd turn to more intelligent sources. There are times when a program meets with an untimely demise. When it crashes, life in Windows comes to somewhat of a halt until you press the OK button on this dialog box which tells you what you already knew - your program is AFU. Sometimes, however, you just want the darned thing to die - without any user interaction required. This dialog prevents Windows from shutting down, among other things, so it can be a bit of a PITA. Does anyone know any clever little tricks to tell Windows not to display this stupid GPF dialog box?

                                Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

                                S Offline
                                S Offline
                                slmshdy
                                wrote on last edited by
                                #18

                                Not sure what language your program is written in, but I ran into the same type of problem when writing a windows service. What I did was to write a method that handles the AppDomain.CurrentDomain.UnhandledException event. That way if an exception occurs that you are not currently handling, it will allow to exit your code gracefully.

                                1 Reply Last reply
                                0
                                • M M Towler

                                  I too would like to disable the 'report close - yes no' notification when applications crash, but these instructions do not fix the issue. What this does is disables whe dialog where it asks you to notify microsoft of the error; you still get the halt dialog reporting the fatal error. What I would like is for the application to exit silently with no dialogs at all, which is proving much more difficult. My latest attempt was to add handlers for microsoft's own exception mechanism, which picks up access violations and hardware related reports as well as program errors, but even this does not cover everything.

                                  R Offline
                                  R Offline
                                  rm_ulrich
                                  wrote on last edited by
                                  #19

                                  I haven't tried it myself, but I would think the following product (still in beta) might do the trick since if one can substitute a custom dialog, one ought to be able to squelch the custom dialog. I'd be interested in knowing if it works! http://www.automatedqa.com/products/aqtrace/index.asp[^] Regards, R

                                  1 Reply Last reply
                                  0
                                  • L leckey 0

                                    I only agreed to change my user name and remove by blog link. We would have to renegotiate for that. I've had a few people wonder until they read the bio. I wanted to leave that so common users still knew who I was.

                                    Blog link to be reinstated at a later date.

                                    R Offline
                                    R Offline
                                    Richard Jones
                                    wrote on last edited by
                                    #20

                                    I was wondering where you went. Glad you're still around. I still miss the daily holidays. :-D

                                    Cheetah. Ferret. Gonads. What more can I say? - Pete O'Hanlon

                                    1 Reply Last reply
                                    0
                                    • C Christopher Duncan

                                      I don't know if there's some registry setting for this or not. Couldn't turn up anything on Google, so I thought I'd turn to more intelligent sources. There are times when a program meets with an untimely demise. When it crashes, life in Windows comes to somewhat of a halt until you press the OK button on this dialog box which tells you what you already knew - your program is AFU. Sometimes, however, you just want the darned thing to die - without any user interaction required. This dialog prevents Windows from shutting down, among other things, so it can be a bit of a PITA. Does anyone know any clever little tricks to tell Windows not to display this stupid GPF dialog box?

                                      Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

                                      G Offline
                                      G Offline
                                      Gary Wheeler
                                      wrote on last edited by
                                      #21

                                      This one bit me in the ass just recently. Our product consists of a UI application and a number of services. The services run the actual hardware. The UI and the services communicate using TCP/IP sockets, since some of the services can run on separate boxes. The UI crashed. While the Dr. Watson dialog is open, the UI process and its socket connections are 'held' in a constant state. As a result, our services didn't realize the UI had gone down, and continued to merrily operate the equipment (a large printing press). As soon as you clicked the Dr. Watson dialog button, the services were notified of the UI disconnect and shut things down. The WTF in all this: the operators submitted an issue to the bug data base, complaining that the UI stopped responding and the big red STOP button didn't work :doh: :doh: :doh: :doh: :doh:.

                                      Software Zen: delete this;

                                      1 Reply Last reply
                                      0
                                      • E El Corazon

                                        My Paranoid Hubby wrote:

                                        I wanted to leave that so common users still knew who I was.

                                        hehehe, well... I changed my name, but left the profile exactly the same. Most folks caught on, but a few did actually get confused. And a few forgot after a few months. Strange how much a name becomes the person, but then... this is the internet, all we really have are names. Change the name and it is like putting on glasses to become Clark Kent.... :-D

                                        _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb) John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."

                                        S Offline
                                        S Offline
                                        Shog9 0
                                        wrote on last edited by
                                        #22

                                        El Corazon wrote:

                                        Most folks caught on, but a few did actually get confused.

                                        Or took it as evidence that you were "confused"... :-\

                                        ----

                                        You're right. These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets.

                                        1 Reply Last reply
                                        0
                                        • C Christopher Duncan

                                          I don't know if there's some registry setting for this or not. Couldn't turn up anything on Google, so I thought I'd turn to more intelligent sources. There are times when a program meets with an untimely demise. When it crashes, life in Windows comes to somewhat of a halt until you press the OK button on this dialog box which tells you what you already knew - your program is AFU. Sometimes, however, you just want the darned thing to die - without any user interaction required. This dialog prevents Windows from shutting down, among other things, so it can be a bit of a PITA. Does anyone know any clever little tricks to tell Windows not to display this stupid GPF dialog box?

                                          Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

                                          C Offline
                                          C Offline
                                          Charles Wolfe
                                          wrote on last edited by
                                          #23

                                          You don't state if you want a program you are writing to just die, or "any old" program that might encounter a "fatal" error. If any program, then you already have a solution given. If you are writing the program, you can trap this and just terminate your program. In the main program you need an error handler for Application.ThreadException. Of course if your program has multiple threads things get messier and I won't even try to address those.

                                          Charles Wolfe C. Wolfe Software Engineering

                                          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