PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WM20] SocketConnect acts strange on Android ?
[WM20] SocketConnect acts strange on Android ?
Iniciado por guest, 02,jul. 2015 23:49 - No hay respuesta
Publicado el 02,julio 2015 - 23:49
Hi,

I have some communications between a server and a WinDev Mobile 20 Android application via TCP (Socketxxxx functions). When the wifi is connected and server is running then the SocketConnect("MySocket,Myport,5000) will not generate an error and the SocketWrite also runs correctly.

But when the Wifi is down (no connection to the server), then the SocketConnect also seems to return a true (successful connection) instead of returning an error ?? Also the ErrorOccurred flag is not set and no Exception is thrown !

It is the first SocketWrite that would generate an error.

This lets my connection status go on/off/on/off...

In the simulator, all runs as expected including the error for the SocketConnect !!

Does anybody had the same effect with SocketConnect ?

Thanks
Danny