automatic resurrection of the process when task manager kill it
-
1. if user ends process from the task manager. how does one automatically restart it without manual interaction?
aka_scoe wrote:
1. if user ends process from the task manager. how does one automatically restart it without manual interaction?
Why would you want to do this? If the user has killed it, they have killed it for a reason and they won't look kindly on your application if it restarts itself.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
1. if user ends process from the task manager. how does one automatically restart it without manual interaction?
aka_scoe wrote:
how does one automatically restart it without manual interaction?
I don't think you would get replies to this query. The Task Manager was directed to end the life of the process because it was behaving truant. It would be ridiculous to give it a chance to revive itself and play the fool again, thus bestowing possibly a catastropic failure on the host system.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep! -
1. if user ends process from the task manager. how does one automatically restart it without manual interaction?
There's almost never a good reason to do this. But, you'd have to have a second application running and monitoring the Process list. When the app disappears, you relaunch it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
1. if user ends process from the task manager. how does one automatically restart it without manual interaction?
If your application is a Windows service, then you can specify to restart the service (also can specify an interval of time), in case of failure/stop in its recovery properties. Also advanced option on Action on First failure, Second Failure etc are available.... But only if your app is an "Windows Service"
-
1. if user ends process from the task manager. how does one automatically restart it without manual interaction?
Use the Windows Scheduler. This is what the Google Updater does.
Best wishes, Hans