ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

SOLVED: RESTART PROGRAM AFTER CRASH

(1/3) > >>

kisskiss:
Will it be possible to make a small footprint and low resource usage application to automaticaly restart one or more user define application instantly after it crashed (start it after the proccess is gone in task manager)? 

P.s. - It's nice if it has a time delay function before restarting the application.

I really would need to have something like this, can someone would consider to make one? Please, please, please... :-*

Many thanks!!! :Thmbsup:
KiSS

Shades:
With crash you will likely mean that the app in question crashes by itself. For that case I don't have a solution (didn't bother to Google for it, so no kiss for me  :-[).

However, Process Explorer from Sysinternals does offer you the a restart option when using its context menu (and likely the default task manager from Windows offers the same functionality). A restart based on a interval might be a solution for you if the application runs for a long time before it crashes.

Besides, if the app needs to run 24h/day, it might be a better idea to use it as a Windows service instead. In the service maintenance screen (again, the context menu is your best friend...after Google of course ;)) Windows gives you the option to automagically restart the service after a crash occurs.

Now I believe there is software that will enable app's to get the same treatment as services (XYNTservice or XYservice it was called, I think).

f0dder:
If you only monitor for "process isn't running anymore" (which would be relatively easy to do), it won't be possibly to terminate the process normally... If that isn't a problem, there's a couple of solutions.

If you only want to restart crashed applications, things get a bit more complicated, and you'd basically have to interface with the just-in-time debugging interface :)

kisskiss:
Will it possible to hook start the application and monitor it's process then restart it if it crash?

f0dder:
Well, my idea would be making an app that launches the "watched-over" apps, and restart them if terminated - which is easy. But detecting intentional close vs. crash is the difficult part :)

Navigation

[0] Message Index

[#] Next page

Go to full version