Click here to Skip to main content
15,867,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Graphics.lib - that old one Pin
Chris Losinger5-Jul-12 5:07
professionalChris Losinger5-Jul-12 5:07 
GeneralRe: Graphics.lib - that old one Pin
Software_Developer5-Jul-12 6:59
Software_Developer5-Jul-12 6:59 
QuestionHelp about Windows Batch file. Pin
pix_programmer4-Jul-12 18:45
pix_programmer4-Jul-12 18:45 
AnswerRe: Help about Windows Batch file. Pin
Jochen Arndt4-Jul-12 21:20
professionalJochen Arndt4-Jul-12 21:20 
GeneralHow to evaluate the ACPI method that requires arguments? Pin
ashok.jeev4-Jul-12 3:28
ashok.jeev4-Jul-12 3:28 
QuestionCResource execption Pin
ForNow3-Jul-12 15:40
ForNow3-Jul-12 15:40 
AnswerRe: CResource execption Pin
Richard MacCutchan3-Jul-12 22:23
mveRichard MacCutchan3-Jul-12 22:23 
GeneralRe: CResource execption Pin
ForNow4-Jul-12 2:18
ForNow4-Jul-12 2:18 
You are right however debugging multithreading code is really fustrating

1) When I run my code normally (just single stepping) the first of my 4 threads executes
correctly

gets created
gets connected

2) the other thread dont dont means get connected

a couple of other observations

When I set a breakpoint at with a filter to the second thread at the following location
"CAsynSock::Connect" the breakpoint takes and I get a connection for the second thread

C++
71:            if( thisocket.Connect(ipaddr,thisocket.port) == 0)
ASM
00A64637  mov         ecx,dword ptr [esi+68h] 
00A6463A  mov         edx,dword ptr [esi+70h] 
00A6463D  push        ecx  
00A6463E  push        edx  
00A6463F  mov         ecx,edi 
00A64641  call        CAsyncSocket::Connect (0A65364h) <==== Breakpoint set here
00A64646  test        eax,eax 
00A64648  jne         SockCLeintThread::InitInstance+4Eh (0A6464Eh) 
72: {


When I select thread 3 or 4 from thread dialog box and right click and select "Switch to thread" there is a little green arrow pointing to the "test" instruction right after the call to "CAsynSocket::connect" and the register valued are grayed out

it would seem to me that the call to CAsynSocket::connect has to be serialized
per thread
GeneralRe: CResource execption Pin
Richard MacCutchan4-Jul-12 3:35
mveRichard MacCutchan4-Jul-12 3:35 
GeneralI inserted IMPLEMENT_SERIAL, DECLARE_SERIAL can someone explain the usage the Run time macros Pin
ForNow4-Jul-12 12:17
ForNow4-Jul-12 12:17 
GeneralAND IT WORKED fogot that part Pin
ForNow4-Jul-12 12:18
ForNow4-Jul-12 12:18 
GeneralRe: I inserted IMPLEMENT_SERIAL, DECLARE_SERIAL can someone explain the usage the Run time macros Pin
Richard MacCutchan4-Jul-12 21:49
mveRichard MacCutchan4-Jul-12 21:49 
QuestionProblem in writing values to shared memory from another process Pin
manoharbalu3-Jul-12 2:41
manoharbalu3-Jul-12 2:41 
AnswerRe: Problem in writing values to shared memory from another process Pin
Richard Andrew x644-Jul-12 12:46
professionalRichard Andrew x644-Jul-12 12:46 
GeneralRe: Problem in writing values to shared memory from another process Pin
manoharbalu4-Jul-12 19:14
manoharbalu4-Jul-12 19:14 
QuestionA guide or survey on software integration techniques Pin
m.salsal2-Jul-12 20:33
m.salsal2-Jul-12 20:33 
AnswerRe: A guide or survey on software integration techniques Pin
Maximilien3-Jul-12 0:48
Maximilien3-Jul-12 0:48 
GeneralRe: A guide or survey on software integration techniques Pin
hr.nasr6-Jul-12 20:48
hr.nasr6-Jul-12 20:48 
GeneralRe: A guide or survey on software integration techniques Pin
Maximilien7-Jul-12 3:28
Maximilien7-Jul-12 3:28 
Questionhow abstract and interface used in real time application? Pin
shanmugarajaa2-Jul-12 19:27
shanmugarajaa2-Jul-12 19:27 
AnswerRe: how abstract and interface used in real time application? Pin
_AnsHUMAN_ 2-Jul-12 19:57
_AnsHUMAN_ 2-Jul-12 19:57 
AnswerRe: how abstract and interface used in real time application? Pin
Richard MacCutchan2-Jul-12 21:36
mveRichard MacCutchan2-Jul-12 21:36 
QuestionStrange compiler output Pin
ForNow2-Jul-12 17:50
ForNow2-Jul-12 17:50 
AnswerRe: Strange compiler output Pin
«_Superman_»2-Jul-12 20:53
professional«_Superman_»2-Jul-12 20:53 
GeneralRe: Strange compiler output Pin
ForNow3-Jul-12 2:46
ForNow3-Jul-12 2:46 

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.