|
-
January 9th, 2011, 10:58 AM
#1
WSAAsyncSelect crashes
Hi,
my server and client use WSAAsyncSelect to handle the sockets connection.
when my client connects to the server, the server sends an image of about 195,000 Bytes using 1 send() call.
for some reason, the client only rarely gets the entire image. usually it stops in the middle. I made a button that calls recv() on press. when i see the client has stopped getting packets, i press that button and it receives the remaining packets (about 40,000 Bytes).
if i try using my window handler after the client gets stuck, it crashes, so my conclusion is that for some reason the window handler being lost, and therefore WSAAsyncSelect stops sending messages about recv() calls.
Any idea why will it crash?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|