PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Managing the fall of Socket connection (by the server)
Managing the fall of Socket connection (by the server)
Débuté par Dann, 04 juil. 2014 20:05 - Aucune réponse
Posté le 04 juillet 2014 - 20:05
Hi everybody,
I'm using the version 17 of WDM on CipherLab 9200, that connects to a server via socket.

The error occurs when the server program falls and the CipherLab tries to send a string (with the function SocketWrite) and to read the returning string (with SocketRead).

When the CipherLab tries to "SocketRead" the string crashes and I have to reset the device.
I tried to set a timeout on SocketRead, but it's ineffective.

I only want to send an info massage to the user and prevent the crash of the system.
Thanks

Dann