I'm trying to troubleshoot a problem where my application fails to run from time to time. It doesn't appear to do it every time, which is pretty irritating.
public PhalanxSocket() { Debug.Print("Creating socket."); this.LineEnding = ""; this._Sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); Debug.Print("Created socket"); }
At least half of the time I deploy the application it hangs up creating the socket. Any ideas? I'm running .NET MF 4.1
The workaround is to launch the program with the ethernet cable unplugged and then plug it in after the application is running.