Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: String to char* Pin
Cedric Moonen1-Sep-08 19:56
Cedric Moonen1-Sep-08 19:56 
AnswerRe: String to char* Pin
Cedric Moonen1-Sep-08 20:00
Cedric Moonen1-Sep-08 20:00 
GeneralRe: String to char* Pin
ThatsAlok1-Sep-08 20:17
ThatsAlok1-Sep-08 20:17 
AnswerRe: String to char* Pin
ThatsAlok1-Sep-08 20:15
ThatsAlok1-Sep-08 20:15 
Questioninterpolation code C++ Pin
mrby1231-Sep-08 16:58
mrby1231-Sep-08 16:58 
AnswerRe: interpolation code C++ Pin
ThatsAlok1-Sep-08 20:18
ThatsAlok1-Sep-08 20:18 
QuestionCToolBarCtrl help Pin
fantasy12151-Sep-08 16:31
fantasy12151-Sep-08 16:31 
QuestionCAsyncSocket fails after a few successful OnReceive()'s Pin
EvoWing1-Sep-08 14:28
EvoWing1-Sep-08 14:28 
I have a multithreaded app that has been successfully using CAsyncSockets to talk to non windows sockets for some time. I have also created CAsyncSockets in their own threads to talk to other instances of this app and it worked fine years ago under Windows 98.

Trying to run it now under XP it stops receiving OnReceive callbacks after an indeterminate time - sometimes just one or two seconds, sometimes a couple of minutes or so. When the callbacks stop, other network apps on the machine also fail (i.e. Internet Explorer, Ping, Net Browser, Shared drives etc all stop working ) until I exit the app.

I have checked the network with WireShark, and the packets are still coming in as expected, just OnReceive is not called. Calls to close socket still work, and reconnecting restarts it again for a short while.

I have slowed the transmission of the packets down to just one 20byte packet per second - it still locks up.

I have called GetSockOpt(SO_ERROR..... No indication of any error.

I have even replaced CAsyncSocket with CAsyncSocketEX from elsewhere on this site and I get exactly the same results.
I am, of course, using a UI thread not a worker thread so a message pump gerts to handle the messages properly.

I have tried it on many different systems all give same problem.

Anybody got any suggestions??
AnswerRe: CAsyncSocket fails after a few successful OnReceive()'s Pin
EvoWing2-Sep-08 3:55
EvoWing2-Sep-08 3:55 
GeneralRe: CAsyncSocket fails after a few successful OnReceive()'s Pin
Mark Salsbery2-Sep-08 7:05
Mark Salsbery2-Sep-08 7:05 
QuestionRe: CAsyncSocket fails after a few successful OnReceive()'s Pin
EvoWing7-Sep-08 4:55
EvoWing7-Sep-08 4:55 
QuestionRe: CAsyncSocket fails after a few successful OnReceive()'s Pin
Mark Salsbery8-Sep-08 8:17
Mark Salsbery8-Sep-08 8:17 
Questionconcatenate linked list of characters Pin
Sadaiyappan1-Sep-08 13:27
Sadaiyappan1-Sep-08 13:27 
AnswerRe: concatenate linked list of characters Pin
Robert.C.Cartaino1-Sep-08 14:51
Robert.C.Cartaino1-Sep-08 14:51 
QuestionA Global Keyboard hook problem. Pin
emmmatty11-Sep-08 9:33
emmmatty11-Sep-08 9:33 
AnswerRe: A Global Keyboard hook problem. Pin
Naveen1-Sep-08 15:21
Naveen1-Sep-08 15:21 
GeneralRe: A Global Keyboard hook problem. Pin
emmmatty11-Sep-08 18:49
emmmatty11-Sep-08 18:49 
GeneralRe: A Global Keyboard hook problem. Pin
Naveen1-Sep-08 19:00
Naveen1-Sep-08 19:00 
AnswerRe: A Global Keyboard hook problem. Pin
Rajesh R Subramanian1-Sep-08 20:51
professionalRajesh R Subramanian1-Sep-08 20:51 
Questionrand() always returns 18467...whats going on.. [modified] Pin
montiee1-Sep-08 8:47
montiee1-Sep-08 8:47 
AnswerRe: rand() always returns 18467...whats going on.. Pin
Mark Salsbery1-Sep-08 11:20
Mark Salsbery1-Sep-08 11:20 
GeneralRe: rand() always returns 18467...whats going on.. Pin
montiee1-Sep-08 19:23
montiee1-Sep-08 19:23 
QuestionMy application is closing when i hit enter button through keyboard Pin
hariakuthota1-Sep-08 8:12
hariakuthota1-Sep-08 8:12 
AnswerRe: My application is closing when i hit enter button through keyboard Pin
Cedric Moonen1-Sep-08 8:16
Cedric Moonen1-Sep-08 8:16 
AnswerRe: My application is closing when i hit enter button through keyboard Pin
onlyjaypatel1-Sep-08 19:24
onlyjaypatel1-Sep-08 19:24 

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.