Click here to Skip to main content
16,006,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFIle Copying Pin
balgovindpandey28-Aug-01 19:35
balgovindpandey28-Aug-01 19:35 
GeneralIRC Chat Pin
MaTrIX2k228-Aug-01 18:57
MaTrIX2k228-Aug-01 18:57 
GeneralRe: IRC Chat Pin
Jack Ploeg29-Aug-01 2:55
Jack Ploeg29-Aug-01 2:55 
GeneralRe: IRC Chat Pin
MaTrIX2k229-Aug-01 8:36
MaTrIX2k229-Aug-01 8:36 
GeneralScrolling multiline edit ctrl to bottom Pin
Jake Palmer28-Aug-01 18:43
Jake Palmer28-Aug-01 18:43 
GeneralRe: Scrolling multiline edit ctrl to bottom Pin
The_Server29-Aug-01 3:13
The_Server29-Aug-01 3:13 
Questionhow to debug multity threads Pin
haozl28-Aug-01 17:21
haozl28-Aug-01 17:21 
AnswerRe: how to debug multity threads Pin
Focht28-Aug-01 20:51
Focht28-Aug-01 20:51 
Hi,

set a breakpoint in the appropriate WaitCommEvent() event type result evaluation. This is usually switch( EvtMask) where you determine the type of event. Run the debuggee. When the debugger breaks on the specified event type, simply suspend the other threads.

"Debug" -> "Threads" ... "suspend" all by looking at "location" where the functions are listed that each thread executed (before break).

By doing this you save yourself from hassle that is when single stepping thru one thread you end up in another thread and so on (of course its multithreaded).

Hope this helps.

A. Focht.


GeneralRe: how to debug multity threads Pin
KingsGambit29-Aug-01 1:26
KingsGambit29-Aug-01 1:26 
GeneralRe: how to debug multity threads Pin
haozl29-Aug-01 2:35
haozl29-Aug-01 2:35 
GeneralQuestion about MFC Pin
Cnoob28-Aug-01 16:14
Cnoob28-Aug-01 16:14 
GeneralRe: Question about MFC Pin
Christian Graus29-Aug-01 1:57
protectorChristian Graus29-Aug-01 1:57 
GeneralRe: Question about MFC Pin
Paul Hooper29-Aug-01 3:06
Paul Hooper29-Aug-01 3:06 
Generalthnx a bunch to both of you Pin
Cnoob29-Aug-01 6:14
Cnoob29-Aug-01 6:14 
GeneralModeless dialogs on top Pin
grathbun28-Aug-01 13:55
grathbun28-Aug-01 13:55 
GeneralRe: Modeless dialogs on top Pin
Carlos Antollini28-Aug-01 14:18
Carlos Antollini28-Aug-01 14:18 
GeneralRe: Modeless dialogs on top Pin
grathbun29-Aug-01 7:37
grathbun29-Aug-01 7:37 
GeneralRe: Modeless dialogs on top Pin
Carlos Antollini29-Aug-01 7:54
Carlos Antollini29-Aug-01 7:54 
GeneralRelease vs Debug Pin
John Uhlenbrock28-Aug-01 13:25
John Uhlenbrock28-Aug-01 13:25 
GeneralRe: Release vs Debug Pin
Ravi Bhavnani28-Aug-01 13:51
professionalRavi Bhavnani28-Aug-01 13:51 
GeneralRe: Release vs Debug Pin
John Uhlenbrock28-Aug-01 14:22
John Uhlenbrock28-Aug-01 14:22 
GeneralRe: Release vs Debug Pin
Brad Bruce28-Aug-01 15:18
Brad Bruce28-Aug-01 15:18 
GeneralRe: Release vs Debug Pin
John Uhlenbrock30-Aug-01 13:17
John Uhlenbrock30-Aug-01 13:17 
GeneralRe: Release vs Debug Pin
Brad Bruce30-Aug-01 13:56
Brad Bruce30-Aug-01 13:56 
GeneralRe: Release vs Debug Pin
John Uhlenbrock30-Aug-01 14:06
John Uhlenbrock30-Aug-01 14:06 

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.