Getting external application stack trace
Posted: Wed May 16, 2018 1:06 am
I have got a rogue (Delphi) application (with MadExcept resource, etc) that seems to totally freeze from time to time.
What I was thinking of doing was to write an application to:
1) connect to it (OpenProcess - https://msdn.microsoft.com/en-us/librar ... s.85).aspx)
2) freeze all threads (SuspendThread - https://msdn.microsoft.com/en-us/librar ... s.85).aspx), and then
3) some how, get the stack trace of the threads.
Is this a smart thing to do? Is there a better way of doing this?, and how would I go about doing step #3 (if that is the right way to go)?
What I was thinking of doing was to write an application to:
1) connect to it (OpenProcess - https://msdn.microsoft.com/en-us/librar ... s.85).aspx)
2) freeze all threads (SuspendThread - https://msdn.microsoft.com/en-us/librar ... s.85).aspx), and then
3) some how, get the stack trace of the threads.
Is this a smart thing to do? Is there a better way of doing this?, and how would I go about doing step #3 (if that is the right way to go)?