|
-
August 11th, 2005, 03:00 PM
#4
Re: Simple CSocket Program Hangs
 Originally Posted by RogerGarrett
The sending and receiving works quite often, but still sometimes, randomly, fails. And I suspect that the problem is that the Server Closes the sending and receiving CArchives, and that sometimes (randomly) the Client hasn't yet had time to retrieve the data sent by the client, so the Server craps out with "An unknown errir occurred while cessing an unnamed file" which seems to be coming from the ReadString on the Client side.
try putting an infinite while loop at the end of both your functions, so that the program does not terminate.. see if you still have the error.. that way you might be able to determine if this is in fact your problem.. (if i understand you correctly.. i'm not familiar with all this CArchive business)
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
|