Click here to Skip to main content
16,014,631 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: activex controls Pin
Jon Hulatt4-Feb-02 4:35
Jon Hulatt4-Feb-02 4:35 
GeneralProcess Memory Pin
StuartHall4-Feb-02 0:42
StuartHall4-Feb-02 0:42 
GeneralSelecting A Directory - Common Dialogs Pin
AJ1234-Feb-02 0:04
AJ1234-Feb-02 0:04 
GeneralRe: Selecting A Directory - Common Dialogs Pin
Christian Graus4-Feb-02 0:04
protectorChristian Graus4-Feb-02 0:04 
QuestionExpoert advice on MFC TCP/IP sockets, please? Pin
Peter Sjöström3-Feb-02 23:31
Peter Sjöström3-Feb-02 23:31 
AnswerRe: Expoert advice on MFC TCP/IP sockets, please? Pin
Joaquín M López Muñoz3-Feb-02 23:51
Joaquín M López Muñoz3-Feb-02 23:51 
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
Peter Sjöström3-Feb-02 23:59
Peter Sjöström3-Feb-02 23:59 
AnswerRe: Expoert advice on MFC TCP/IP sockets, please? Pin
4-Feb-02 0:45
suss4-Feb-02 0:45 
We've been using the MFC CAsyncSocket class for a number of years now, in part of a commercial distributed system. While we have experienced 'broken' code in the past (I think with the release of VC 4.2, there was an error in one the MFC header files, and the Ioctl call didn't work!), everything does seem to work with the current VC 6.

We probably send hundreds of thousands of realtime messages daily, and don't experience any lockups, so I wouldn't immediately suspect MFC.

It isn't easy to diagnose a problem like this from a short message, but I would suggest looking at your socket 'reader' programs. I have in the past had lockups when the 'reader' program had a bug and stopped reading the socket. The TCP buffers then filled up, and the 'writer' was blocked.

I've implemented socket code both using winsock and MFC, and have found the MFC version generally easier to use. Unless you really want to write and manager your own event loop, I would look for the cause of your problem instead. In any case, you might experience the same problem even if you re-write if it is just a 'reader' bug.



Hope this helps...

Dharminder Birdi
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
4-Feb-02 1:04
suss4-Feb-02 1:04 
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
Peter Sjöström4-Feb-02 1:25
Peter Sjöström4-Feb-02 1:25 
AnswerRe: Expoert advice on MFC TCP/IP sockets, please? Pin
markkuk4-Feb-02 1:46
markkuk4-Feb-02 1:46 
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
Jay Beckert5-Feb-02 11:14
Jay Beckert5-Feb-02 11:14 
Generalscrolling Pin
Chagit3-Feb-02 23:13
Chagit3-Feb-02 23:13 
QuestionHow this is working? Pin
3-Feb-02 22:50
suss3-Feb-02 22:50 
AnswerRe: How this is working? Pin
Paul M Watt3-Feb-02 23:13
mentorPaul M Watt3-Feb-02 23:13 
GeneralSome Code Pin
NikoTanghe3-Feb-02 22:19
NikoTanghe3-Feb-02 22:19 
GeneralRe: Some Code Pin
Joaquín M López Muñoz3-Feb-02 23:37
Joaquín M López Muñoz3-Feb-02 23:37 
GeneralRe: Some Code Pin
NikoTanghe4-Feb-02 0:13
NikoTanghe4-Feb-02 0:13 
GeneralRe: Some Code Pin
Joaquín M López Muñoz4-Feb-02 0:21
Joaquín M López Muñoz4-Feb-02 0:21 
GeneralRe: Some Code Pin
Philip Patrick4-Feb-02 2:05
professionalPhilip Patrick4-Feb-02 2:05 
Generalmy recordset can't add new element Pin
3-Feb-02 22:00
suss3-Feb-02 22:00 
GeneralRe: my recordset can't add new element Pin
Mazdak3-Feb-02 22:22
Mazdak3-Feb-02 22:22 
GeneralRe: my recordset can't add new element Pin
4-Feb-02 9:33
suss4-Feb-02 9:33 
GeneralWav Pin
Chagit3-Feb-02 20:59
Chagit3-Feb-02 20:59 
GeneralRe: Wav Pin
Mazdak3-Feb-02 21:10
Mazdak3-Feb-02 21:10 

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.