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 1 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.
  • 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