Trap connection error (wsagetlasterror 10054)
Posted: Wed 04 Nov 2009 15:50
I have an app that is polling a database on a timer every 5 seconds. On a particular site their internet / mysql connection seems to time out fairly frequently.
When this happens I get a dialogue box with error wsagetlasterror 10054 how do I handle this error please. I have set the timeout to 120 but still get the error.
What is the best method of handling this.
I presume I stop the timer until the connection becomes live again but am not sure how to do this.
Cheers
SteveW
When this happens I get a dialogue box with error wsagetlasterror 10054 how do I handle this error please. I have set the timeout to 120 but still get the error.
What is the best method of handling this.
I presume I stop the timer until the connection becomes live again but am not sure how to do this.
Cheers
SteveW