Click here to Skip to main content
15,926,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WTL windows and unchanging cursors Pin
The Arabundi25-Sep-01 9:05
The Arabundi25-Sep-01 9:05 
GeneralTab order question Pin
RobJones25-Sep-01 5:51
RobJones25-Sep-01 5:51 
GeneralRe: Tab order question Pin
RobJones25-Sep-01 7:01
RobJones25-Sep-01 7:01 
GeneralRe: Tab order question Pin
Paolo Messina26-Sep-01 0:46
professionalPaolo Messina26-Sep-01 0:46 
GeneralRe: Tab order question Pin
RobJones26-Sep-01 4:39
RobJones26-Sep-01 4:39 
QuestionHow can I (programatically) scroll the client area derived from CHtmlView. Pin
Umar Riaz25-Sep-01 5:33
Umar Riaz25-Sep-01 5:33 
QuestionDebugging multi-threaded apps in VS IDE? Pin
jbay@nebs.com25-Sep-01 5:20
jbay@nebs.com25-Sep-01 5:20 
AnswerRe: Debugging multi-threaded apps in VS IDE? Pin
Jeremy Pullicino25-Sep-01 22:12
Jeremy Pullicino25-Sep-01 22:12 
The first thing that comes to mind is that when you launch it in debug mode from the VS context, the exe is run from the \debug directory and also, the working directory is different and there might be different command line params set from the VS IDE.

I program multi-threaded apps every day (my job is programming servers) and the best way to find deadlocks is to add extensive logging to your application.

Put logs before and after every one of your wait functions (WaitForSingleObject, WaitForMultipleObjects, etc..) then see where the deadlock is.

Another thing that comes to mind when debugging multi-threaded applications is timing. The timing is completely different in debug mode than it is in release and deadlocks are all about timing.

Maybe the deadlock bugs are there, but they do not happen in release mode since it is faster and it catches up better.

Hope this helps,
Jeremy.
GFI

Suspicious | :suss:

"Hey man, Taliban, Tali me Banana."
Generalcontextmenu on treeviewctrl in wtl Pin
Steffen25-Sep-01 5:03
Steffen25-Sep-01 5:03 
GeneralRe: contextmenu on treeviewctrl in wtl Pin
25-Sep-01 8:12
suss25-Sep-01 8:12 
GeneralRe: contextmenu on treeviewctrl in wtl Pin
25-Sep-01 21:37
suss25-Sep-01 21:37 
GeneralPrinting of Selected Tree Nodes...... Pin
25-Sep-01 4:10
suss25-Sep-01 4:10 
GeneralRe: Printing of Selected Tree Nodes...... Pin
Tomasz Sowinski25-Sep-01 5:14
Tomasz Sowinski25-Sep-01 5:14 
GeneralSecure socket client under Win CE Pin
25-Sep-01 4:07
suss25-Sep-01 4:07 
GeneralMultiline CEdit control question Pin
25-Sep-01 3:25
suss25-Sep-01 3:25 
GeneralRe: Multiline CEdit control question Pin
Tomasz Sowinski25-Sep-01 4:03
Tomasz Sowinski25-Sep-01 4:03 
GeneralRe: Multiline CEdit control question Pin
25-Sep-01 4:19
suss25-Sep-01 4:19 
GeneralRe: Multiline CEdit control question Pin
DanYELL25-Sep-01 4:51
DanYELL25-Sep-01 4:51 
GeneralClasses with resources Pin
Adi Shavit25-Sep-01 3:01
Adi Shavit25-Sep-01 3:01 
GeneralRe: Classes with resources Pin
Tomasz Sowinski25-Sep-01 4:01
Tomasz Sowinski25-Sep-01 4:01 
GeneralRe: Classes with resources Pin
Adi Shavit30-Sep-01 6:00
Adi Shavit30-Sep-01 6:00 
GeneralRe: Classes with resources Pin
Rashid Thadha25-Sep-01 5:46
Rashid Thadha25-Sep-01 5:46 
Questionhow to convert from device coordinates into physical coordinates Pin
pathi25-Sep-01 2:59
pathi25-Sep-01 2:59 
AnswerRe: how to convert from device coordinates into physical coordinates Pin
Tomasz Sowinski25-Sep-01 3:59
Tomasz Sowinski25-Sep-01 3:59 
GeneralCHtmlView question Pin
Nick Armstrong25-Sep-01 2:01
Nick Armstrong25-Sep-01 2:01 

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.