Walter Meester
HoogkarspelPays-Bas
Information générale
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
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,
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement