Click here to Skip to main content
15,905,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem in deleting the windows registery key and it's sub key Pin
Mike Dimmick20-Jun-07 2:40
Mike Dimmick20-Jun-07 2:40 
GeneralRe: Problem in deleting the windows registery key and it's sub key Pin
Neeraj Sinha20-Jun-07 3:33
Neeraj Sinha20-Jun-07 3:33 
Questionveryurgent : perfect tool to convert coff format lib to omf format Pin
rjkg20-Jun-07 2:00
rjkg20-Jun-07 2:00 
AnswerRe: veryurgent : perfect tool to convert coff format lib to omf format Pin
toxcct20-Jun-07 2:06
toxcct20-Jun-07 2:06 
GeneralRe: veryurgent : perfect tool to convert coff format lib to omf format Pin
rjkg20-Jun-07 2:20
rjkg20-Jun-07 2:20 
AnswerRe: veryurgent : perfect tool to convert coff format lib to omf format Pin
Mark Salsbery20-Jun-07 5:40
Mark Salsbery20-Jun-07 5:40 
JokeRe: veryurgent : perfect tool to convert coff format lib to omf format Pin
Hamid_RT20-Jun-07 9:24
Hamid_RT20-Jun-07 9:24 
GeneralRe: veryurgent : perfect tool to convert coff format lib to omf format Pin
Mark Salsbery20-Jun-07 9:26
Mark Salsbery20-Jun-07 9:26 
QuestionCSocket stoping in PumpMessage (please help) Pin
tomitron20-Jun-07 1:55
tomitron20-Jun-07 1:55 
AnswerRe: CSocket stoping in PumpMessage (please help) Pin
Matthew Faithfull20-Jun-07 2:53
Matthew Faithfull20-Jun-07 2:53 
AnswerRe: CSocket stoping in PumpMessage (please help) Pin
Mike Dimmick20-Jun-07 3:44
Mike Dimmick20-Jun-07 3:44 
AnswerRe: CSocket stoping in PumpMessage (please help) Pin
Roger Stoltz20-Jun-07 4:29
Roger Stoltz20-Jun-07 4:29 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
led mike20-Jun-07 5:28
led mike20-Jun-07 5:28 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
Roger Stoltz20-Jun-07 6:21
Roger Stoltz20-Jun-07 6:21 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
led mike20-Jun-07 6:32
led mike20-Jun-07 6:32 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
Roger Stoltz20-Jun-07 6:57
Roger Stoltz20-Jun-07 6:57 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
led mike20-Jun-07 8:43
led mike20-Jun-07 8:43 
AnswerRe: CSocket stoping in PumpMessage (please help) Pin
tomitron20-Jun-07 5:44
tomitron20-Jun-07 5:44 
AnswerRe: CSocket stoping in PumpMessage (please help) Pin
tomitron21-Jun-07 1:38
tomitron21-Jun-07 1:38 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
tomitron21-Jun-07 1:41
tomitron21-Jun-07 1:41 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
Roger Stoltz21-Jun-07 3:38
Roger Stoltz21-Jun-07 3:38 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
tomitron21-Jun-07 5:33
tomitron21-Jun-07 5:33 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
Roger Stoltz22-Jun-07 1:05
Roger Stoltz22-Jun-07 1:05 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
Mike O'Neill6-Jul-07 14:07
Mike O'Neill6-Jul-07 14:07 
You might have solved your problem by now, but one other reason that CSocket sometimes appears to "freeze" is that another one of the "golden rules" of sockets is broken: Don't call Receive() multiple times inside of OnReceive(). The correct code will make exactly one single call to Receive() inside OnReceive().

MSDN advises that multiple calls to Receive() can cause the application to freeze.

The same rule applies to CAsyncSocket() too.

See "Mfcsocs.exe sample demonstrates how to communicate in a TCP connection in Visual C++" at http://support.microsoft.com/kb/185728[^], which talks about a situation in which there are no more FD_READs. The simple little word about the application "hanging" is so important that it should be in large red bold letters, but it's not.

Mike
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
tomitron6-Jul-07 14:52
tomitron6-Jul-07 14:52 

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.