Networking Forums

Networking Forums > Computer Networking > Windows Networking > Socket Shutdown problem

Reply
Thread Tools Display Modes

Socket Shutdown problem

 
 
Valerie Hough
Guest
Posts: n/a

 
      11-10-2006, 09:17 AM
I have a .NET Windows Forms based client server application using TCP sockets that exchange messages asynchronously during normal operation.

When a client is going to disconnect, it sends a message synchronously to the server saying that it is about to exit.

At this point it is guaranteed that no more messages will be sent from the server to this disconnecting client.

The client then does:
Socket.Shutdown( SocketShutdown.Both );
Socket.Close();

The form is then closed. At this point, although not always, the client who is disconnecting produces a Cannot access a disposed object exception whose stack trace points to the asynchronous receive module of my client's socket code.

Can anyone tell me what might be happening here?

Thank you in advance.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pppd shutdown problem Raphael Wegmann Linux Networking 4 10-20-2005 09:13 PM
NDIS Shutdown Problem - Help Needed Frenchy Windows Networking 0 12-27-2003 09:09 PM
cable modem shutdown problem sjsibenik Windows Networking 0 12-05-2003 11:05 PM
Netgear FA311 shutdown problem Mark Moffatt Windows Networking 2 09-11-2003 04:12 AM
Unexpected shutdown problem Michael Crocker Windows Networking 0 07-29-2003 01:50 PM



1 2 3 4 5 6 7 8 9 10 11