Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Extracting binary resources -- PNG and Bitmap Pin
Mark Salsbery6-Aug-07 13:28
Mark Salsbery6-Aug-07 13:28 
GeneralRe: Extracting binary resources -- PNG and Bitmap Pin
Torus_XL7-Aug-07 8:10
Torus_XL7-Aug-07 8:10 
AnswerRe: Extracting binary resources -- PNG and Bitmap Pin
Torus_XL6-Aug-07 11:04
Torus_XL6-Aug-07 11:04 
QuestionWin32: Writing a new line of text? [modified] Pin
deostroll6-Aug-07 9:33
deostroll6-Aug-07 9:33 
AnswerRe: Win32: Writing a new line of text? Pin
Wes Aday6-Aug-07 9:52
professionalWes Aday6-Aug-07 9:52 
GeneralRe: Win32: Writing a new line of text? Pin
Nemanja Trifunovic6-Aug-07 10:03
Nemanja Trifunovic6-Aug-07 10:03 
AnswerRe: Win32: Writing a new line of text? Pin
deostroll7-Aug-07 19:57
deostroll7-Aug-07 19:57 
QuestionCSocket stops receiving Pin
Trooper_IL6-Aug-07 8:54
Trooper_IL6-Aug-07 8:54 
I have a problem which I am finding myself unable to figure out.

I have a fairly simple CSocket-derived class, which does not much beyond overriding OnReceive so that it saves all the received buffer, and then calling a function of a Pointer to a thread class of mine, which does what it will with the buffer.

At the moment I have a server and a client, both of which have a thread for receiving and a thread for sending through these sockets. The general communication type is thus - client sends a request, server processes and sends some sort of a reply. The messages to be sent in-process are delivered through inter-thread messaging.

The problems occurs mainly while debugging, but it can happen while just running the applications - at some point, if a number of request are "fired" rapidly, the connection get messed up in a rather odd way:

Clients sends successfully, then Server receives, does it's processing, goes on to send a reply, the send operation goes without errors, and yet the other side never receives the message. I've traced all the receive calls on my socket class, and not once there was an error.
So basically, everything indicates that the connection is alive, and yet it never goes through in one direction.

The messages are of varied sizes, but when in debug, 2 140-bytes requests and 160-bytes replies kill the communication.
AnswerRe: CSocket stops receiving Pin
led mike6-Aug-07 9:13
led mike6-Aug-07 9:13 
QuestionRe: CSocket stops receiving Pin
Mark Salsbery6-Aug-07 9:40
Mark Salsbery6-Aug-07 9:40 
AnswerRe: CSocket stops receiving Pin
Trooper_IL7-Aug-07 3:09
Trooper_IL7-Aug-07 3:09 
GeneralRe: CSocket stops receiving Pin
Mark Salsbery7-Aug-07 4:57
Mark Salsbery7-Aug-07 4:57 
GeneralRe: CSocket stops receiving Pin
JudyL_MD7-Aug-07 10:14
JudyL_MD7-Aug-07 10:14 
QuestionAdd text to title bar (or document header) Pin
AeJai6-Aug-07 8:09
AeJai6-Aug-07 8:09 
AnswerRe: Add text to title bar (or document header) Pin
Mark Salsbery6-Aug-07 8:11
Mark Salsbery6-Aug-07 8:11 
GeneralRe: Add text to title bar (or document header) Pin
AeJai6-Aug-07 8:14
AeJai6-Aug-07 8:14 
QuestionRe: Add text to title bar (or document header) Pin
AeJai6-Aug-07 9:39
AeJai6-Aug-07 9:39 
AnswerRe: Add text to title bar (or document header) Pin
Mark Salsbery6-Aug-07 9:59
Mark Salsbery6-Aug-07 9:59 
Question2 dim numbers.. Pin
_80866-Aug-07 5:42
_80866-Aug-07 5:42 
QuestionRe: 2 dim numbers.. Pin
David Crow6-Aug-07 5:44
David Crow6-Aug-07 5:44 
AnswerRe: 2 dim numbers.. Pin
_80866-Aug-07 6:20
_80866-Aug-07 6:20 
GeneralRe: 2 dim numbers.. Pin
David Crow6-Aug-07 7:24
David Crow6-Aug-07 7:24 
GeneralRe: 2 dim numbers.. Pin
_80866-Aug-07 7:42
_80866-Aug-07 7:42 
AnswerRe: 2 dim numbers.. Pin
Rage6-Aug-07 5:49
professionalRage6-Aug-07 5:49 
GeneralRe: 2 dim numbers.. Pin
_80866-Aug-07 6:27
_80866-Aug-07 6:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.