I'm using N3E and I use for communicate
server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
server.ReceiveTimeout = SOCKET_TIMEOUT_MILISECONDS;
server.Bind(new IPEndPoint(IPAddress.Any, PORT));
Socket clientSocket = server.Accept();
Thread commThread = new Thread(() => ProcessRequest(clientSocket));
I have copied all code together here. Code in my program is a little separated and surrounded with
The random crash is happened in native code and after crash none off try catch catch the exception. This bring it to dead state of my netduinos, software is running but i cannot communicate to him over socket.
In my separed app in which i have code for search this device and communication i can successfully ping device but if i make any call to here i get error response.