Hello:
I have several (12) NP2 with 4.2.2 firmware.
I use an IP socket to request the time to a server. Simply send "DATETIME" and it returns the time.
When I use socket.connect, and the server is down, the program hangs. No exception and no continue.
This is the simple code:
var ipB=new byte[]{ 192, 168, 0, 100 }var ep = new IPEndPoint(new IPAddress(ipB), 4000);Debug.Print("Connecting...");soc.Connect(ep);Debug.print("Connected!");
The console shows "Connecting...", but never "Connected!" or exception is the server/service is down.
To avoid hang of the NP2, I run this code in a new Thread. The application still running, but never continues to "Connected!", and the application hangs after time (minutes/hours).
Curiosity: If I abort the socket thread, I receive an IO exception when try to write to the SD card and when try to Access to IO ports.
Any suggestion?
Thanks for your time!