Lloyd Dupont
10/7/2003 12:29:00 PM
I have a socket doing
void WaitForConnection()
{
while(true)
{
Socket clientSocket = serverSocket.Accept();
new ThreadedHandler(clientSocket).HandleRequest();
}
}
WaitForConnection() is executed in it own thread which is Abort() -ed at the
finalization, and then I call
serverSocket.Shutdown(Both);
and the I get ObjectDisposedException().
I always believed an object could be disposed multiple times, furthermore
this socket is a member of my class, so it should not be disposed before the
server, does it ?
I will call this a bug ...