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

Main application window

The main window

  • 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.
Editing the monitor settings for an application

Editing the monitor settings for an application

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.

The configuration dialog. Yes, that's it.

The configuration dialog. Yes, that’s 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


  • Improved “application is not responding” detection.
  • Added a “Clear Log” button to the Log window.


  • 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.
Related posts :

489 Responses to “Automatically Restart Crashed Or Hanged Applications”

  1. […] Descargue y ejecute Reiniciar en caso de bloqueo. Es una buena idea tener la aplicación que desea reiniciar en ejecución porque hace que sea más fácil agregarla a la lista de aplicaciones. Reiniciar en caso de bloqueo debe reiniciarse si se bloquea. […]

  2. Ron Jr says:


    First, thank you for the ROC application!

    When (if) my application unexpectedly terminates, I need to execute a MS Windows Script Host File (.WSF) script in order to correctly relaunch the application, however, it appears that ROC does not recognize .WSF (script files) as executables and therefore the application is never re-launched.

    For example, when the app is launched normally, the app opens (two) windows. The second window requires the “OK” button to be clicked in order for the First windows to resume loading. I have created a WSF script file (which uses VBS) to launch the application and then send the [Enter] key stroke command. This satisfies the “OK” button click and then the app continues to load.

    Unfortunately, ROC does not recognize executable scripts (specifically .WSF scripts) and so the app Restart fails.

    Q: Can you please add support for .WSF as an executable?
    (.VBS and .PS1 would be good too but I really need the .WSF)

    Here is the log output:

    5/8/2020 4:34:33 AM C:\Discovery Freelancer 4.88.1\EXE\flserver.exe is not running
    5/8/2020 4:34:33 AM C:\Discovery Freelancer 4.88.1\EXE\flserver.exe will be treated as crashed/hanged

    5/8/2020 4:40:51 AM Executing a command : “C:\Users\Administrator\Desktop\DFL_Auto_Restart_VBS.wsf”
    5/8/2020 4:40:51 AM CreateProcess error : %1 is not a valid Win32 application
    5/8/2020 4:41:07 AM Executing a command : “C:\Users\Administrator\Desktop\DFL_Auto_Restart_VBS.wsf”
    5/8/2020 4:41:07 AM CreateProcess error : %1 is not a valid Win32 application

    Also, I can send the .WSF script file if you want to take a look and I can send a screenshot of the config / path if this helps.

    Thanks for your time.



  3. Jānis Elsts says:

    I’m not familiar with .WSF scripts, but some quick research suggests that it’s possible to run them from the command line. Maybe the same approach would work with RoC? Try using a command like this:

    wscript “c:\full\path\to\script.wsf”

  4. Ron Jr says:

    Hi Janis,

    Yes, that was it! It worked perfectly. Thank you for the help on this.

    Unfortunately this was my first time attempting .wsf / VBS scripts. I tested the script by double-clicking the script, which works, but did not think to perform execute/test from a traditional command-line / CLI or realize that the “Execute a command” field ROC has was the same as Windows CMD.

    Again, thank you again for your help!

  5. […] 1: Đầu tiên các bạn tải Restart on crash tại đây và chọn dòng Download Restart on crash để tải […]

  6. Ben Computer says:

    What a nice tip!!! Thank you so much!

  7. Thanks for your tips. I was translate to Vietnamese for my friends <3 Thanks you very much. If you have freetime, you can visit my website at

  8. […] 1: Đầu tiên các bạn tải Restart on crash tại đây và chọn dòng Download Restart on crash để tải […]

Leave a Reply