Results 1 to 4 of 4

Thread: [RESOLVED] VB6 Program Relaunch/check an EXE

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Posts
    21

    Resolved [RESOLVED] VB6 Program Relaunch/check an EXE

    Hello.

    I want a vb program to keep running in the background for checking another exe file, if it is running on not.
    If the another EXE file which was running crashes accidentally,
    The program should re-lauch the closed exe.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB6 Program Relaunch/check an EXE

    Is the program that is crashing something you wrote?

    If so, it would be much better to stop it from crashing in the first place - by adding apt error handling etc.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Posts
    21

    Re: VB6 Program Relaunch/check an EXE

    Quote Originally Posted by si_the_geek View Post
    Is the program that is crashing something you wrote?

    If so, it would be much better to stop it from crashing in the first place - by adding apt error handling etc.
    Yes! Basically, I've made a web browser.
    1. I want, whenever a runtime error occurs, program should execute "exit sub"
    2. Sometimes due to heavy web page, the application crashes!

    So, I need solutions to both.
    Thanks.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB6 Program Relaunch/check an EXE

    I recommend you spend some time reading a couple of articles from our Classic VB FAQs (in the FAQ forum), particularly Why do errors crash my program, and how can I stop that from happening? (making an Error Handler) which will enable you to act on errors appropriately.

    It will also let you find out what the errors are, which will enable you to fix the problems with your code. You can find advice on how to do that in the article What does this error mean, and how do I fix it?

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