Multithreading
-
Hi, How to debug an application which is having multiple threads on windows paltform ?? Anybody got some clues?? Thx & Reg, Satya
-
Hi, How to debug an application which is having multiple threads on windows paltform ?? Anybody got some clues?? Thx & Reg, Satya
put a breakpoint in each thread and press F8 to step through the execution context will toggle between threads... If you pressF5 then you may loose the control of debugging the threades.
MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"
-
Hi, How to debug an application which is having multiple threads on windows paltform ?? Anybody got some clues?? Thx & Reg, Satya
Debugging threads is always difficult. If at all possible try to debug with the minimum number of threads at any one time. As has already been mensioned context switching will occur while debugging threads. Ant.
-
Hi, How to debug an application which is having multiple threads on windows paltform ?? Anybody got some clues?? Thx & Reg, Satya
I think you can use the ordinary "TRACE" inside each threads, and then use F5 to debug. This will only show you the sequence of operations that really happen. But the advantage is that you will know what is happened on when But don't use too many TRACE, on each thread, cause doing so will make the debug report is too long and hard to TRACE does it help? :-O Programming or Die? ----C++ 4 ever-----