Solved

Disabling Program Error Dialog

Posted on 2004-09-20
6
179 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Knowledge base software has turned out to be a quite reliable method for storing information, promoting collaborative work and for sharing valuable input and solutions.However, some organizations are trying to develop a knowledge base that works wit…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now