Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session time out problem

Status
Not open for further replies.

Kurtie

Programmer
Apr 3, 2002
37
BE
Hi,

I've connected 2 PC's with W2K SP2 via a HUB. One PC is considered the master with a shared map. The other PC (client) has a mapped drive to that shared map. I'm running from the client an vb executable. This programm reads and writes info every 2 seconds (real-time application) from the master. These Pc's are Compaq
Problem : after x-time the connection is lost. I'm getting errors like bad-file record, can't find drive,...
After starting the .exe for a second time and a third time my program works again. When putting an on-error routine to trap the errors it works, but that doesn't take the cause away.
on the support-site from microsoft there is some support on maps disconnection and compaq problems. I tried these out but the problem still exists.
Does anyone have any other suggestions?

Kurtie
Kurtie
 

Did you happen to put any Socket.Timeout statements in your code?? This might be the problem.

If not you might want to add:

If socket1.state<>connected then

Reconnect code....

to the points in your program which tries to access the socket.

John Stephens
 
Hello John,
I haven't worked with the socket control. It isn't a client-server application. The program just looks at a mapped directory and opens the file, that's all. Kurtie
 
My guess is that this is either a faulty network problem, maybe a bad hub?, or perhaps a timing problem.

I'll leave the network issues to other experts.

As far as timing, I might set up some test cases, adjusting the 2 second timing interval up and down to see if there is a relationship between that interval and the failure rate, keeping in mind what other apps may or may not be running on either machine which affect things.

If there is, then we have something to work with to fine tune things. If not, then we go back to the drawing board.

Good Luck



 
I will send someone to check the cabling, a hub problem i don't think so. Cable lenght's are about 50m to the hub cat5 cabling, it's an industrial environment, so there could be interferrence from other cables. But it is not the first system i 've made. I think i will have to rethink my software on that.
Nevertheless I will reply as soon as I have the time on this issue. Thanks for the support Kurtie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top