Click here to Skip to main content
15,910,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting IP and Language Pin
Baris Kurtlutepe20-Jun-03 23:21
Baris Kurtlutepe20-Jun-03 23:21 
GeneralUnhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Will Beattie19-Jun-03 19:32
Will Beattie19-Jun-03 19:32 
GeneralRe: Unhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Ryan Binns19-Jun-03 21:16
Ryan Binns19-Jun-03 21:16 
GeneralRe: Unhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Will Beattie19-Jun-03 22:37
Will Beattie19-Jun-03 22:37 
GeneralRe: Unhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Ryan Binns19-Jun-03 22:44
Ryan Binns19-Jun-03 22:44 
GeneralRe: Unhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Will Beattie19-Jun-03 23:29
Will Beattie19-Jun-03 23:29 
GeneralRe: Unhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Ryan Binns19-Jun-03 23:37
Ryan Binns19-Jun-03 23:37 
GeneralRe: Unhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Baris Kurtlutepe20-Jun-03 23:13
Baris Kurtlutepe20-Jun-03 23:13 
If this assertion fires randomly, i.e. it fires sometimes and especially when the connection is being or is closed, then please read further. Otherwise just ignore me. Smile | :)

Actually this is an internal error and I don't think you're doing anything wrong at all. If it works fine in the release build, than that's it. I believe this is caused by the bad habit of abortive closing of the socket. The CAsyncSocket is a cumbersome implementation of winsock (and CSocket is much much worse) in which it uses hidden windows to receive asynchronous notifications and sometimes fails badly to handle the case, especially in abortive closures as I've mentioned. My assumption is that some window message(s) will get received after the socket has been closed and this assertion fires. Eventually it's not only that assertion on Line 567, there are many more you could face.

Networking is chaotic due to the nature of connectivity and it's almost impossible to reproduce the problem, so that's why this assertion sometimes fires and sometimes does not and that's why I never succeeded in finding out the reason of the CAsyncSocket asserts. Though I'm not getting them that frequently (by the time of writing this I've noticed, I haven't got one since a month! OMG | :OMG: I must have done something..) I've given up. Just blame it on Microsoft and everything's fine again. Wink | ;)

Btw. CSocket and CAsyncSocket should really really be derived from CWnd. So, bad design + verygoodgodlikewhatever programming -> bad implementation.
GeneralBitmap on a Button Pin
San19-Jun-03 19:19
San19-Jun-03 19:19 
GeneralRe: Bitmap on a Button Pin
valikac19-Jun-03 19:23
valikac19-Jun-03 19:23 
GeneralRe: Bitmap on a Button Pin
Rick York19-Jun-03 19:40
mveRick York19-Jun-03 19:40 
Questionhow can i use CString format the string like "12,123.23" thanks Pin
nodream19-Jun-03 18:33
nodream19-Jun-03 18:33 
AnswerRe: how can i use CString format the string like "12,123.23" thanks Pin
Nick Parker19-Jun-03 18:49
protectorNick Parker19-Jun-03 18:49 
GeneralSorry, that I want to receive is 12,345.12 Pin
nodream19-Jun-03 19:03
nodream19-Jun-03 19:03 
GeneralRe: Sorry, that I want to receive is 12,345.12 Pin
flob919-Jun-03 23:40
flob919-Jun-03 23:40 
GeneralRe: Sorry, that I want to receive is 12,345.12 Pin
basementman20-Jun-03 4:46
basementman20-Jun-03 4:46 
GeneralNMS Product Pin
SatyaDY19-Jun-03 18:24
SatyaDY19-Jun-03 18:24 
GeneralRe: NMS Product Pin
basementman20-Jun-03 4:49
basementman20-Jun-03 4:49 
GeneralRe: NMS Product Pin
basementman20-Jun-03 4:54
basementman20-Jun-03 4:54 
GeneralCString to LPDISPATCH and back! Pin
Ed K19-Jun-03 17:53
Ed K19-Jun-03 17:53 
GeneralRe: CString to LPDISPATCH and back! Pin
Michael Dunn19-Jun-03 18:20
sitebuilderMichael Dunn19-Jun-03 18:20 
GeneralRe: CString to LPDISPATCH and back! Pin
Ed K20-Jun-03 3:12
Ed K20-Jun-03 3:12 
QuestionVisual C++ 6 SP 5 Installed ? Pin
Gagnon Claude19-Jun-03 16:08
Gagnon Claude19-Jun-03 16:08 
AnswerRe: Visual C++ 6 SP 5 Installed ? Pin
Toni7819-Jun-03 16:17
Toni7819-Jun-03 16:17 
Generalthe size of string Pin
gucy19-Jun-03 15:50
gucy19-Jun-03 15:50 

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.