Re: WSAAsyncSelect crashes
The client needs to call recv in a loop cause the TCP subsystem is not able to serve such a huge buffer with one call. You will get the number of bytes read with each call and have to add the number of already received bytes to the buffer address passed with recv. Unfortunately, there is no safe way to find out when the read is complete beside the server has put the total size of bytes to send at the begin of the buffer where you can read it with the first call to recv.
The crashing probably is because the buffer provided by the client is too small.
Re: WSAAsyncSelect crashes
Sorry, I missed that you were using the WSA functions and not the native socket functions. But the principal problem should be the same.
Re: WSAAsyncSelect crashes
i pretty much changed the entire sending system to be more efficient and it works now :)
thanks alot!