Getting external application stack trace

contains all delphi packages mentioned below
Post Reply
Nick
Posts: 2
Joined: Sat May 06, 2017 10:44 pm

Getting external application stack trace

Post 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)?
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Getting external application stack trace

Post by madshi »

Just run "madCollection\madExcept\Tools\madTraceProcess.exe". Done! :D
Nick
Posts: 2
Joined: Sat May 06, 2017 10:44 pm

Re: Getting external application stack trace

Post by Nick »

How am I meant to look brilliant in front of the boss if do that??

Thanks for such a simple solution :crazy:
Post Reply