Results 1 to 2 of 2

Thread: Auto Restart the Exe if it is Hang..

  1. #1

    Thread Starter
    Registered User
    Join Date
    Nov 2014
    Posts
    9

    Auto Restart the Exe if it is Hang..

    Dear All,

    i have running my program[exe] which is developed in vb.net in client place , in case if the exe hang and it should restart in 1 min automatically.

    how to i restart the exe programmatically using vb.net with in 1 min if it is hang?

    Looking forward your valuable reply

    Regards,
    Mk

  2. #2
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,612

    Re: Auto Restart the Exe if it is Hang..

    You probably cant, at least, not in a way that's sensible. I guess you could run whichever operation is hanging on a separate thread and then monitor that thread from your main thread but you're probably going to start chasing your tail there.

    Do you know what's causing the hang? Is it a genuine block or is it just doing a lot of processing? (There will be no point in restarting if it's a lot of processing because that work will still need to be done so it will just "hang" again).

    It sounds like you're trying to cover up an underlying problem in which case the best advice would be to do your investigation properly and fix the real problem.
    You can depend upon the Americans to do the right thing. But only after they have exhausted every other possibility - Winston Churchill

    Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width