Results 1 to 3 of 3

Thread: Endreceive when Formclosing is intiated

Threaded View

  1. #2
    Addicted Member
    Join Date
    Oct 2008
    Location
    USA
    Posts
    150

    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
  •  



Click Here to Expand Forum to Full Width