ecuguru
asked on
Windows XP Monitor App for Crash? Reopen if so
I've got a commercial application that occasionally crashes. Doesn't hang, but flat out crashes. Does XP Pro have any ways to restart the application if it detects the crash? If not, is there an accepted Windows way to do this?
You can set the application to run at startup. (as soon as windows boots the application will start)
It sounds to me that your running out of usable memory, and that the app you are using processes alot of memory allocations to run. I would tweak xp and stop any services that are not required to run automatically. Sometimes this also can be your antivirus program running a daily scan, while your running your app, which takes up alot of memory. possibly change the antivirus daily settings to run a scan after work hours. You may consider a memory upgrade also.
Cheers
Cheers
ASKER
rnicolaus : 08/30/2010 - 11:51PM EST
Yes - I need help to run it as a service. Thanks!
Yes - I need help to run it as a service. Thanks!
How to run an application as a service:
Open an MS-DOS command prompt (Start | Run | "cmd.exe"), and type the following command:
(Note: Space between binpath= and "C:\ has to be there.)
c:\windows\system32\sc.exe create "Service Name" binPath= "C:\Your Program.exe"
or simply
sc.exe create "Service Name" binPath= "C:\Your Path\And Program.exe"
Open an MS-DOS command prompt (Start | Run | "cmd.exe"), and type the following command:
(Note: Space between binpath= and "C:\ has to be there.)
c:\windows\system32\sc.exe
or simply
sc.exe create "Service Name" binPath= "C:\Your Path\And Program.exe"
ASKER
Thanks Micolaus.. Will this auto-start the application/service on startup as well then?
ASKER
The service was created ok via the dos prompt per your instructions, but when I goto run the application I get:
Could not start the AppService service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion
If it's not going to work through this approach, is there a third party application I can use to keep the apps running?
Could not start the AppService service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion
If it's not going to work through this approach, is there a third party application I can use to keep the apps running?
A third party app won't do anything different - we need to figure out why it's stopping in the first place.
Is there another error in the event log that you can share?
What version of .NET is installed? Perhaps Microsoft.NET Framework 1.1 Service Pack 1will help:
http://support.microsoft.com/kb/885055/
Is there another error in the event log that you can share?
What version of .NET is installed? Perhaps Microsoft.NET Framework 1.1 Service Pack 1will help:
http://support.microsoft.com/kb/885055/
ASKER
Recreated the error.
I was able to try it to call it using a batch file and I got the same error. To fix, I put a cd command before calling the application to be in the local directory, and it worked. Before opening the app, is it possible to tell it to change directory to the apps directory before execution (C:\app)?
If the service calls the batch file I made, when the app dies, can it detect it? Cause I don't know if the batch file will stay up as far as its concerned.
thanks!!!
I was able to try it to call it using a batch file and I got the same error. To fix, I put a cd command before calling the application to be in the local directory, and it worked. Before opening the app, is it possible to tell it to change directory to the apps directory before execution (C:\app)?
If the service calls the batch file I made, when the app dies, can it detect it? Cause I don't know if the batch file will stay up as far as its concerned.
thanks!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oh, you can get the files here if needed:
ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt40/i386/srvany_x86.exe
ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt40/i386/srvany_x86.exe
let me know if you need to know how to run the app as a service