Debug Delphi multithreaded application - how to get one consuming 100% processor

I am debugging a multithreaded delphi application. We are having problems with the fact that after connecting to the server, the client application receives 100% of the processor. Is there a way for me to debug and know that the shich thread is dois?

+4
source share
2 answers

Process Explorer will provide you with usage information down to the thread level for any process.

  • Run the application
  • Run the process handler (after loading it;)
  • Double-click your executable in the process list.
  • Select the "Themes" tab and you will see:
    • Stream id
    • CPU usage
    • Delta li cycles>
    • And the starting address

The TID should be enough to muffle the processor freeze flow.

+8
source

As Paul Sasik says, Process Explorer is probably what you want to do. If your debugging strategy involves monitoring the code that resides in your application, use GetThreadTimes .

+3
source

All Articles