Well, I hit debug when it crashed, and popped up the "call stack" window, and here is my analysis:
Code:
if(serverShutdown()) //crash
{
MessageBox(hWnd, "Connection to server lost.", "Error", MB_OK);
backToConnect(hWnd);
}
serverShutdown() calls:
server->hasData() which calls:
select() //crash
Also, once in a while it will simply not crash but infinitely pop up messageboxes that say "Connection to server lost" (which SOUNDS like infinite recursion to me), after which right-clicking "My Computer" and going to properties results in a message saying "Access to the specified device, path, or file is denied", and Notepad has "not enough memory" to run while MSVC++ does... Any ideas?