posibble to get frozen thread stack?

delphi package - automated exception handling
Post Reply
spanfkyous
Posts: 13
Joined: Fri Nov 10, 2017 1:29 am

posibble to get frozen thread stack?

Post by spanfkyous »

Hi,

Is it posibble to get the frozen thread stack in bug report?

I have a application. it was frozen somtimes, while the bugreport show it was frozen by a simple function, so i wanna know if some wrong parameters were passed to this function.

Thanks.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: posibble to get frozen thread stack?

Post by madshi »

I'm not sure exactly what you're asking. Can you explain in other words or more detail?
spanfkyous
Posts: 13
Joined: Fri Nov 10, 2017 1:29 am

Re: posibble to get frozen thread stack?

Post by spanfkyous »

madshi wrote: Tue Nov 30, 2021 2:49 pm I'm not sure exactly what you're asking. Can you explain in other words or more detail?
It's my fault. :oops:

I am using madexcept to check app frozen..

but the "stack dump" and "cpu regs" are only available for exception checking.

so is it posibble to them working for frozen checking?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: posibble to get frozen thread stack?

Post by madshi »

Ah, now I understand. The stack dump and registers are not shown because they are (potentially) changing all the time. E.g. if the main thread is in a end endless loop, all the registers will constantly change, and thus also the stack.

An exception is a special situation: Basically it's one very specific point in time and madExcept then collects the stack and registers at that exact point in time and shows it to you. But a frozen main thread is more or less "dynamic", in that registers and stack can (potentially) change all the time. So I don't think that showing this information would be very useful?
Post Reply