Walter Meester
HoogkarspelNetherlands
General information
Category:
ActiveX controls in VFP
Hi pablo,
What I would do is enable a timer that sends a PING to the server every 2 seconds or so.
The timer would set a flag "Pingstatus" to "Sent"
In the data arrival, you would set same property "Answer recieved"
When the timer is fired for at least the second time, and the "pingstatus" property is set to "Sent", it means you never got an answer to the sent "PING", and you can assume that the server has been shut down.
Good luck,
Walter,
SNIP
>What is the problem here, then?
The problem is that you're sending a "PING", but the procedure never goes into a wait state so that the DataArrival event can be processed. You can use a DOEVENTS in the loop, but it really is a dirty solution here I personally would not rely on.
Walter,
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only