Original Post
Fixed: Found it - nothing to do with this code actually. I had another thread that did socket stuff and it was causing this issue because WSAStartup() was not called on that thread. I’ve got an issue where my select() function will throw error 10093 on a socket that was working and reviving data. According to MSDN error 10093 = “Returned by any function except WSAStartup() indicating that a successful WSAStartup() has not yet been performed.“ I opened the socket from the client to the server PuttyTel and send some data then left it idle till it crashed. If I manually close PuttyTel the server is fine. The thing that really puzzles me about the error is that it states that my WSAStartup() function failed – I don’t see how if my server was working. select statement: [Edited by - MrRage on July 5, 2007 1:26:58 AM]
if ((select(0, &readerSet, &writerSet, NULL, &timeout)) == SOCKET_ERROR) {
// Error 10093 comes up here.
}