jorge Posted February 8, 2004 Posted February 8, 2004 Hello me agen :(, I my class now give's: A blocking operation was interrupted by a call to WSACancelBlockingCall as error, but i don't know what it is and how to avoid it, does anyone have a id what it is? check msdn lib 2003 but didn't seem to find anything :confused: Quote Jorge - http://www.blackdot.be/?page=apache.htm
jorge Posted February 11, 2004 Author Posted February 11, 2004 anyone? Quote Jorge - http://www.blackdot.be/?page=apache.htm
*Gurus* Derek Stone Posted February 11, 2004 *Gurus* Posted February 11, 2004 We're going to need a bit more information than just an error. Quote Posting Guidelines
jorge Posted February 11, 2004 Author Posted February 11, 2004 Do While tServer_Pool.ThreadState = ThreadState.Running Or tServer_Pool.ThreadState = ThreadState.Background Client = ServerListener.AcceptTcpClient() ThreadPool.QueueUserWorkItem(New WaitCallback(AddressOf Server_Worker)) Loop i have this code in a thread, wich at some point need to be suspended becouse i'm stopping the server. but when i resume the thread later on i get WSACancelBlockingCall@: Client = ServerListener.AcceptTcpClient() and then the application hangs. Quote Jorge - http://www.blackdot.be/?page=apache.htm
*Gurus* Derek Stone Posted February 11, 2004 *Gurus* Posted February 11, 2004 As should be expected. You need to close the socket prior to terminating the thread. Quote Posting Guidelines
jorge Posted February 12, 2004 Author Posted February 12, 2004 so how do i do that? run client.close() befor i suspend the thread? Quote Jorge - http://www.blackdot.be/?page=apache.htm
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.