cridia
June 14th, 2005, 21:07
In the Thread window ,what is the different between the "User time" and "System time"?
How to debug the multi thread procedure?
TresPasser
June 15th, 2005, 01:34
1) "User time" means the time spent running the user code (meaning the actual code of the program). "System time" is the time spent running operating system code (like in API calls and such).
2) You can only debug one thread at a time, however, you can control the execution of all the threads. Therefore, you can place breakpoints inside the threads and the program will stop when that thread is executed. This is done by double clicking on the wanted thread in the thread window, and placing the breakpoint normally (you need to find where the next command of the thread is, usually you can look at the last value in the stack, and that will show you where to place your BP).
You can also catch a thread before it starts by placing a BP on the CreateThread API, looking at the thread start addr in the stack (when the program stops), and placing a BP there.
I hope this makes sense.
TresPasser
Powered by vBulletin® Version 4.2.2 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.