|
-
Jun 4th, 2013, 11:01 AM
#2
Addicted Member
Re: Endreceive when Formclosing is intiated
I feel/think you are misunderstanding the purpose of socket.endreceive.
see this link
http://msdn.microsoft.com/en-us/library/w7wtt64b.aspx
Try closing the socket in the Formclosing method. This will cause socket.endreceive to throw an ObjectDisposedException exception.
Handle this exception in a try catch block.
Last edited by 2ndmessiah; Jun 4th, 2013 at 11:06 AM.
Reason: Pitiful bad spelling and grammar.
Think.... Question.....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|