Detect that an application is locked : <p>I have an application developed in C # that sometimes is blocked, when it is blocked I have to restart it. I know if there is any way to detect if the application is frozen, close it and then restart.</p>

<p>Thank for all!</p>
