Application Redundancy?

munkee

Active member
Joined
Feb 20, 2007
Messages
43
Programming Experience
Beginner
I'm not exactly sure if that's what you'd call it... but here is my scenario.

I have an application that is to be ran on my system. If it crashes and closes out, another application will automatically restart the main app.


I'm thinking I would have to find the programs Handle and use a timer to constantly look for it? If it does not find the Handle, then launch the application?

Am I headed the right direction? Anything helps guys.



Thanks
 
You can use the Process class to see if that process exists, when you get the correct process instance you can periodically check its HasExited property to see if it still runs.
 
nice :)

Thanks John... you're always of great help. I'm guessing that's why you're the moderator!

your approach seems to be a lot less complicated than what i had in mind.


much appreciated.
 
well, moderator is more like janitor, doing all that stuff you normally don't see to keep things in order, but I like trying to solve mine and others programming challenges too, and participating in all these inquiries is open for all registered users as you know.
 
Back
Top