Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Marshaling an Interface Pointer Pin
Roger Stoltz7-Feb-07 10:59
Roger Stoltz7-Feb-07 10:59 
GeneralRe: Marshaling an Interface Pointer Pin
BuckBrown8-Feb-07 10:11
BuckBrown8-Feb-07 10:11 
GeneralRe: Marshaling an Interface Pointer Pin
Roger Stoltz8-Feb-07 10:37
Roger Stoltz8-Feb-07 10:37 
QuestionMFC SDI and Dialog Boxes Pin
werpa6-Feb-07 9:03
werpa6-Feb-07 9:03 
GeneralRe: MFC SDI and Dialog Boxes Pin
prasad_som6-Feb-07 18:11
prasad_som6-Feb-07 18:11 
AnswerRe: MFC SDI and Dialog Boxes (it can be a little offtopic) Pin
Joan M6-Feb-07 20:41
professionalJoan M6-Feb-07 20:41 
AnswerRe: MFC SDI and Dialog Boxes Pin
#realJSOP7-Feb-07 2:02
professional#realJSOP7-Feb-07 2:02 
QuestionOnReceive stop being called [modified] Pin
jpyp6-Feb-07 7:30
jpyp6-Feb-07 7:30 
Hopefully somebody can help me with this problem. I am fairly new with socket connection. I know you guys will want to see some code but unfortunately this is hard to do as my code is on a classified system. I would prefer not to have to type all the necessary code. However if I have to I will.

I have a server-client socket connect and I use CSocket. Once the connection is made, the server sends 168-byte message to the client once per second. In the client OnReceive function I read the data and then write it to a file. In the OnIdle function of the client I also check if the connection with the server is still up by sending a one-byte message to the server. My problem is that it works for a while and then the client OnReceive stops being called by the framework.

Using debugging I know for a fact that the server is still sending the 168-byte messages every seconds without any errors. I also know that the client is still sending the one-byte message to the server and the server is still receiving it. Both programs seem to be working just fine except for the fact that the OnReceive is no longer being called and therefore I am no longer writing data to the file.

Anybody can help me? Thanks!

BTW it never stops at the same place. I can sometimes receive 2K but other times I can receive a lot more. The most I got was 94,168 bytes.

-- modified at 13:41 Tuesday 6th February, 2007

jpyp

QuestionRe: OnReceive stop being called Pin
Mark Salsbery6-Feb-07 14:04
Mark Salsbery6-Feb-07 14:04 
QuestionRe: OnReceive stop being called Pin
Mark Salsbery6-Feb-07 14:12
Mark Salsbery6-Feb-07 14:12 
AnswerRe: OnReceive stop being called Pin
jpyp7-Feb-07 11:41
jpyp7-Feb-07 11:41 
GeneralRe: OnReceive stop being called Pin
Mark Salsbery7-Feb-07 12:05
Mark Salsbery7-Feb-07 12:05 
GeneralRe: OnReceive stop being called Pin
Mike O'Neill7-Feb-07 15:49
Mike O'Neill7-Feb-07 15:49 
GeneralRe: OnReceive stop being called Pin
jpyp8-Feb-07 9:35
jpyp8-Feb-07 9:35 
QuestionSingleton inheritance Pin
Waldermort6-Feb-07 7:20
Waldermort6-Feb-07 7:20 
AnswerRe: Singleton inheritance Pin
Cedric Moonen6-Feb-07 7:48
Cedric Moonen6-Feb-07 7:48 
GeneralRe: Singleton inheritance Pin
Waldermort6-Feb-07 8:05
Waldermort6-Feb-07 8:05 
GeneralRe: Singleton inheritance Pin
Cedric Moonen6-Feb-07 8:16
Cedric Moonen6-Feb-07 8:16 
GeneralRe: Singleton inheritance Pin
Waldermort6-Feb-07 8:30
Waldermort6-Feb-07 8:30 
GeneralRe: Singleton inheritance Pin
Cedric Moonen6-Feb-07 8:33
Cedric Moonen6-Feb-07 8:33 
GeneralRe: Singleton inheritance Pin
Waldermort6-Feb-07 8:53
Waldermort6-Feb-07 8:53 
QuestionCalling a macro in Excel [modified] Pin
deville756-Feb-07 7:13
deville756-Feb-07 7:13 
QuestionSQL Problem Pin
_anil_6-Feb-07 2:40
_anil_6-Feb-07 2:40 
AnswerRe: SQL Problem Pin
Chris Losinger6-Feb-07 3:04
professionalChris Losinger6-Feb-07 3:04 
GeneralRe: SQL Problem Pin
_anil_6-Feb-07 3:39
_anil_6-Feb-07 3:39 

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.