Solved

Disabling Program Error Dialog

Posted on 2004-09-20
6
185 Views
Last Modified: 2010-04-14
Hey All,

I am running a program on Windows 2000 that crashes periodically and displays a "Program Error" Dialogue stating

"decoder.exe has generated errors and will be closed by windows.
You will need to restart start the program
An error is being created"

and then waits for the used to click "OK".  However, I don't want the program to wait for the user to click "OK" or even to display the dialog, I just want the program to crash and continue on as if the "OK" button was clicked.

>>>> PLEASE NOTE (IMPORTANT):
I have tried setting the value of "ErrorMode" in the registry ([HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows]) to 2 i.e. no popups but this did not seem to work.
<<<<

Can someone please help me with this problem, it is urgent!
Thanks,
Stef
0
Comment
Question by:stefarg
  • 3
  • 2
6 Comments
 
LVL 19

Assisted Solution

by:Zaheer Iqbal
Zaheer Iqbal earned 100 total points
ID: 12101029
Are you wanting to continue working with the program, do u think creating a user defined service for this program would help. So when it fails it is restrated after x amount of time, is that what u need..
0
 
LVL 10

Accepted Solution

by:
Longbow earned 400 total points
ID: 12101128
The simplest way i have found is to run the application like this :
Creating a loop wich reexecutes the software each time it is closed :

 * 1- Create a batch file wich will run the application :
rem -------- RunApp.bat ---------
:Begin
start /wait notepad.exe
goto BEGIN
rem -------- End of RunApp.bat ---------

2- Create a shortcut to this batch file and change the properties / Shortcut tab / Run option = Minimized.

To stop this loop just close the Command Prompt in the taskbar.

 * Another way with a VBScript :

--- Script beginning ---
Set WshShell = Wscript.CreateObject("Wscript.Shell")

Do
WSHShell.Run "Notepad.exe",1 , True
Loop

Wscript.Quit
--- End of Script ---

You can create a shortcut to the .vbs

To kill the process kill "wscript.exe" in the Taskmanager.
Just replace notepad.exe by the complete path and filename of your software.
0
 
LVL 1

Author Comment

by:stefarg
ID: 12101226
Thanks for replying!

What I am trying to do is to allow the program to move on to the next line in a batch file i.e. the program should terminate (even with an error code) and then continue.  Each line in the batch file runs the program with different arguments and I don't mind if it crashes as long as it continues to the next line.  It is not practical to press the "OK" button on the dialog because there are 1000s of lines in the batch file to run different configurations.

I had a similar problem to this on another computer but changing the registry as explained above solved the problem, but unfortunately no for this computer.

Any other ideas?

Could it be something to do with disabling event logging?
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 1

Author Comment

by:stefarg
ID: 12101447
OK, problem solved.

I had disabled the error prompts but the Dr. Watson tools seemed to be causing problems with logging, so I disabled it by modifying the registry key "Auto" in
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug] to 0.

Also, I don't know if it made any difference or even if it was a good idea (I needed to get it working so I tried it) but I also disabled
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\CrashControl] "LogEvent".

Thanks for the comments, I'm gonna split the points, with the majority of the points going to Longbow because he (or she) posted some potential solutions, while the other comment was just a question.  However I'm giving some points just for replying :D
Thanks again.
0
 
LVL 1

Author Comment

by:stefarg
ID: 12101475
P.S. I didn't delete this question because I think the comments posted and the solution to the problem may prove valuable to others in the future
0
 
LVL 10

Expert Comment

by:Longbow
ID: 12109672
I am "He". Happy it works for you.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
There is less than 0% available RIDs in the current pool 5 768
HeapQueryInformation could not be located 1 915
VMware converter for windows 2000 server SP4 4 6,143
Screen Mirroring 7 77
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question