Fudley 9 Posted July 22 ProcA and ProcB both call ProcC. Is there any way to know, without setting additional flags or passing parameters, who called ProcC (i.e. a WhoCalledMe function)? Share this post Link to post
dummzeuch 1664 Posted July 22 (edited) There is always the return address on the stack. Which you can get by calling ReturnAddress But I guess you don't want an address but a function / method name? JclDebug offers some functions for that: https://stackoverflow.com/questions/1301254/how-to-get-current-methods-name-in-delphi-7 Or as described here: Edited July 22 by dummzeuch 2 Share this post Link to post