|
-
Aug 25th, 2009, 06:13 AM
#1
Thread Starter
Junior Member
[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.
-
Aug 25th, 2009, 06:37 AM
#2
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.
-
Aug 25th, 2009, 06:42 AM
#3
Thread Starter
Junior Member
Re: VB6 Program Relaunch/check an EXE
 Originally Posted by si_the_geek
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.
-
Aug 25th, 2009, 07:47 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|