AlexGold
Feb 22nd, 2002, 09:56 AM
Hi,
I have a VB Appl. which connects to a server and runs through a script on this server. It keeps doing this until the server is either shut-down or the script just dies because of a fatal error. No idea how this works, didin't set it up, but it's not important anyway. Now, this VB Appl. keeps on trying to establish a connection to the server, but obviously fails, if the server isn't there. So, basically, the exe just hangs there. Now I've written a C++ exe which will start this VB app as a service with automatic connection. The C++ program keeps on timing the VB app to check if its still there. Well, that doesn't help, I realized, because the VB prog. is still there, it's still responding, it just can't connect. Anybody have a clue, how I can get a reply from the VB exe which will tell me that it's not getting an answer from the server, so I can kill it and restart it? This task is really killing me, I'm not a programming pro, so I've run out of ideas. Thx in advance.
Alex
I have a VB Appl. which connects to a server and runs through a script on this server. It keeps doing this until the server is either shut-down or the script just dies because of a fatal error. No idea how this works, didin't set it up, but it's not important anyway. Now, this VB Appl. keeps on trying to establish a connection to the server, but obviously fails, if the server isn't there. So, basically, the exe just hangs there. Now I've written a C++ exe which will start this VB app as a service with automatic connection. The C++ program keeps on timing the VB app to check if its still there. Well, that doesn't help, I realized, because the VB prog. is still there, it's still responding, it just can't connect. Anybody have a clue, how I can get a reply from the VB exe which will tell me that it's not getting an answer from the server, so I can kill it and restart it? This task is really killing me, I'm not a programming pro, so I've run out of ideas. Thx in advance.
Alex