Debug Delphi multi-thread app - how to get the one consuming 100% CPU
debugging, delphi, multithreading
Solution
Process Explorer will give you usage details down to the thread level for any process.
- Run your app
- Run Process Explorer (after downloading it ;-)
- Double click on your executable in the process list
- Select the Threads tab and there you will see:
- The Thread ID
- CPU Usage
- Cycles Delta
- And the start address
The TID ought to be enough to nail down your CPU hogging thread.
Problem
I'm debugging a multi-thread delphi app. We are having a trouble that, after connect to the server, the client app is getting 100% of the CPU. Is there a way for me to debug and know shich thread is dois that?