Automatically Restart Crashed Or Hanged Applications
Don’t you hate it when programs hang or crash? I find it especially annoying when a background application like an IM client or a bandwidth monitor silently crashes – sometimes I only notice the problem hours later when I’ve already missed a bunch of messages. I’m sure you’ve encountered a few “Not responding” errors and some irritatingly crash-prone applications yourself.
If you have an unstable program that you absolutely need to run at all times, but don’t want to waste your time monitoring and manually restarting it every time it croaks, I might have something interesting for you.
Restart on Crash is an monitoring tool that will watch the applications that you specify and automatically relaunch any program that hangs or crashes. You can add any number of applications to monitor, enable/disable them individually and edit the command line that will be used to restart an application.
Restart on Crash doesn’t require installation and stores all it’s configuration data in a “settings.ini” file in the program’s folder, so it’s portable. It should be compatible with most NT-based Windows versions.
Download Restart on Crash (1.4 MB)
Screenshots & Documentation
- To add a new application to monitor, click the “Add” button or press the Ins key.
- To delete on or more applications from the list, select them and click “Delete” or press Del.
- To edit the per-application configuration, double-click the corresponding row. This will open the editing dialog (see below).
- You can also access the RoC configuration by clicking “Settings” and view the activity log by clicking “Show Log”. The log contains information about crashed/hanged applications, executed commands, and so on.
Well, this one should be pretty self-explanatory 🙂 One detail to keep in mind is that enabling the “It isn’t running” option will make Restart On Crash treat the application as if it has crashed even if you have purposefully it closed it. You can get around this by disabling the monitoring of the application before you close it.
“Grace period” is how long Restart on Crash will wait before trying to terminate/restart an application that it has just terminated/restarted. This is intended to prevent a scenario where RoC kills a hanged program, restarts it, decides it has hanged again (e.g. if the program is non-responsive while starting up) and wrongfully terminates it again.
Known Issues
- If you configure RoC to automatically kill a hanged application, it will terminate all instances of that application when doing so. This may be fixed eventually.
Release Notes
2022-11-02
- The “execute a command” feature can now launch shortcuts (.lnk files). Potentially, it can now run almost any type of file as long as file associations are set up correctly.
2019-12-17
- Improved “application is not responding” detection.
- Added a “Clear Log” button to the Log window.
2019-08-24
- Added a “Restart Now” option to the application pop-up menu. It restarts the selected application immediately without waiting for the grace period to expire.
Hello! two days ago I had a problem with this program: VNC crashed again and RoC wasn’t able to recover it. When I was able to come back to my PC, I saw an error message saying that VNC was already running on the machine. This means that RoC was not able to totally kill the previous locked instance and when trying to run a new one, it produced the error. Besides, since the error is a window of VNC, after that RoC was assured that VNC was working, since there was a window to witness that…
How can this be avoided? Thanks.
I imagine this could be worked around by making RoC check the window title to make sure it really is the right one. Alas, I don’t have the time to implement that.
Is there any version for Linux? Is the source code available? I’d like to fix some small bug, like that when you start it minimized, it starts minimized to the task bar, not to the system tray.
White Shadow: I think it would be enough to have a timer to set a wait time since when an application is terminated and when it’s restarted once again. My problem was probably due to the fact that when RoC tried to start the application, it was not terminated, yet.
This should be very fast to implement, and I’ll be more than happy to test the new version. Thanks.
[…] D’altra parte per evitare di dover riavviare manualmente gli applicativi utilizzati più di frequente, possiamo affidarci a “Restart on crash“. […]
Will please consider putting an option in the system tray menu that will close all the apps RoC is monitoring, including RoC itself. This would be very handy. Of course, by “close” I mean the normal close not the force close that RoC uses on crashed programs.
thanks
What ways are there to be informed of updates to RoC?
Source code would be great; I would love to make some customizations as well. You’d need to pick a licensing scheme. GNU General Public License would be a good choice… no one could make money from your labor and any changes would be sent back to you.
Andy
To solve the minimize to task bar, although it’s suppose to minimize to system tray, you need to send the post message “0x112, 0xF020” to the RoC window. Since I”m not really a programmer, I had to get AutoHotkey to do this for me.
PostMessage, 0x112, 0xF020,,, Restart On Crash
Great work W-Shadow. its working fine, and amazing softwear….
Thanks!
[…] Restart on Crash es un programa portable y gratuito que proporciona la funcionalidad de reiniciar los programas después de un accidente mediante el control y supervisión después de una caída del programa. Usted puede agregar cualquier número de aplicaciones para controlar, activar o desactivar individualmente y editar la línea de comandos que se utiliza para reiniciar una aplicación. […]
Roc…..wonderfull software !!!….Where can i find its documentation…????
[…] LinkedIn […]
hi there,i tried your format to solved my crashed program but can’t find it,though i used your steps you gave.please help,
My computer tells me this program has crash.
What should i do now. Thanks.
FINALLY i found this, and works great!
it’s wonderfull software!!!
THANKS!
..and sorry for my bad english :p
Feature request: start prog. in high priority.
Not responding : [00000FC0] , cant i know where it crash in my program ?
thanks, great program !
is it posible to download the code (or buy) , i want to include in my visual basic program .
Waaaaaaaa….this is a cool software that could solve my question !!
thanks a lot !!
[…] Download Restart on Crash […]