How to find frozen threads

delphi package - automated exception handling

How to find frozen threads

Postby nmos » Thu Sep 03, 2020 1:19 pm

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
2020-09-03_16-13-39.png
processExplorer screen shoot
2020-09-03_16-13-39.png (77.3 KiB) Viewed 413 times
nmos
 
Posts: 2
Joined: Thu Sep 03, 2020 12:06 pm

Re: How to find frozen threads

Postby madshi » Fri Sep 04, 2020 7:48 am

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.
madshi
Site Admin
 
Posts: 10274
Joined: Sun Mar 21, 2004 5:25 pm

Re: How to find frozen threads

Postby nmos » Mon Sep 07, 2020 2:22 pm

Thanks for your help...
nmos
 
Posts: 2
Joined: Thu Sep 03, 2020 12:06 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 16 guests

cron