Page 1 of 1

Getting external application stack trace

Posted: Wed May 16, 2018 1:06 am
by Nick
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)?

Re: Getting external application stack trace

Posted: Wed May 16, 2018 6:00 am
by madshi
Just run "madCollection\madExcept\Tools\madTraceProcess.exe". Done! :D

Re: Getting external application stack trace

Posted: Wed May 16, 2018 9:22 am
by Nick
How am I meant to look brilliant in front of the boss if do that??

Thanks for such a simple solution :crazy: