I have an application with two sides (server and client), each with 2 winsock controls to send and receive messeges. The client send a little string to the server. But when it (the server) goes to send it again (Winsock2.senddata) i get a 40006 error. I think that is because the winsock closes before the senddata event is fired. But i coldn't solve the problem. I already saw the MSDN article for this error but it didn't work for me.
