469,645 Members | 1,174 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

Asynchronous socket programming


I've got a huge problem with async sockets.
I've created a networked virtual environment, using async socket programming.
The problem I face occurs when I close the listener socket. It listens using socket.BeginAccept(...).
When a client disconnects, the socket is disconnected like this:



(The application is still running now!)
Now, when an incoming call comes (which it just should ignore), my application crashes with:

Uncaugt exception in System.dll, InvalidOperationException in system.net.sockets.Socket.AcceptCallback......

How the hell can I catch this? Better, why does it still throw this? it is shutdown!

-- Rob.
Jul 21 '05 #1
0 1198

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by a.kostrzewa | last post: by
48 posts views Thread by Steve - DND | last post: by
reply views Thread by Richard | last post: by
9 posts views Thread by Michael Lindsey | last post: by
7 posts views Thread by Colin | last post: by
4 posts views Thread by Engineerik | last post: by
2 posts views Thread by Nicolas Le Gland | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.