Yes, shutdown code I have is:
networkStream.Close()
socket.Shutdown( SocketShutdown.Both );
socket.Close();
this thread then exits, but one thread hangs, call stack for the thread
that hangs is:
System.dll!System.Net.OSSOCK.recv
System.dll!System.Net.Sockets.Socket.ReceiveNoCheck
System.dll!System.Net.Sockets.Socket.ReceiveAsyncRequest.doRequest
System.dll!AsyncRequest.handleRequest
System.dll!System.Net.Sockets.Socket.WorkerThread.doWork
System.dll!System.Net.Sockets.Socket.WorkerThread.doWorkI
mscorlib.dll!System.Threading.ThreadPool.WorkItem.doWork
mscorlib.dll!System.Threading.Timer.ring
John
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!