How to resolve this ERROR?
-
I'm trying to disconnect socket connection and then want to reuse again when any new client request comes but as I Press disconnect and Re-login then get following Error Message SocketException was unhandled. Message:"A blocking operation was interrupted by a call to WSACancelBlockingCall" ErrorCode:10004 Please help me out how to close socket properly so user re-login again successfully. Regards,
Shanzay
-
I'm trying to disconnect socket connection and then want to reuse again when any new client request comes but as I Press disconnect and Re-login then get following Error Message SocketException was unhandled. Message:"A blocking operation was interrupted by a call to WSACancelBlockingCall" ErrorCode:10004 Please help me out how to close socket properly so user re-login again successfully. Regards,
Shanzay
It would be hard to guess the exact cause without looking at the code. However the WSACancelBlockinCall exception generally happens when you stop listening as Listen is a blocking method. Call the Close method to close the connection. ~Dave
Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com