How to find frozen threads

delphi package - automated exception handling
Post Reply
nmos
Posts: 2
Joined: Thu Sep 03, 2020 12:06 pm

How to find frozen threads

Post by nmos »

Hello,
I am newbie madexcept.
I have a Windows service application running on windows 7/10 and compiled with delphi 2007.
there are too many threads in the application. Sometimes when I stop the service, some threads keep running, some threads remain in a standby state. (I see it with ProcessExplorer (processHacker) and they don't disappear from the program manager.
How can I find this threads using madexcept.
regards,
Attachments
processExplorer screen shoot
processExplorer screen shoot
2020-09-03_16-13-39.png (77.04 KiB) Viewed 3538 times
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: How to find frozen threads

Post by madshi »

There's a tool called "madTraceProcess32/64.exe" (see madExcept\Tools folder) which you can run to analyze your service. It doesn't always work, depending on whether the process is stuck in a DllMain entry point or not, but there is a chance it might work, so it's definitely worth a try. Of course you'd have to compile your service with madExcept activated first.
nmos
Posts: 2
Joined: Thu Sep 03, 2020 12:06 pm

Re: How to find frozen threads

Post by nmos »

Thanks for your help...
Post Reply