Getting external application stack trace

contains all delphi packages mentioned below

Getting external application stack trace

Postby Nick » 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 ... 20(v=vs.85).aspx)
2) freeze all threads (SuspendThread - https://msdn.microsoft.com/en-us/librar ... 45(v=vs.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)?
Nick
 
Posts: 2
Joined: Sat May 06, 2017 10:44 pm

Re: Getting external application stack trace

Postby madshi » Wed May 16, 2018 6:00 am

Just run "madCollection\madExcept\Tools\madTraceProcess.exe". Done! :D
madshi
Site Admin
 
Posts: 9664
Joined: Sun Mar 21, 2004 5:25 pm

Re: Getting external application stack trace

Postby Nick » Wed May 16, 2018 9:22 am

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

Thanks for such a simple solution :crazy:
Nick
 
Posts: 2
Joined: Sat May 06, 2017 10:44 pm


Return to madCollection

Who is online

Users browsing this forum: No registered users and 1 guest