singh_chandra_bhan wrote:
> I have it at many groups but didnt got response...
> 
> how can we keep track of function and method calls without writing an
> inch of code in the method to trap the method name from outside the
> method.

What you want is called a profiler. The profiler would instrument your 
code before you compile it, adding code at function entry and exit 
points to note the start and end of each call.

> Do we have any function to keep track of all the methods name...

Yes, but that's not going to tell you when they're called. Use the 
JclDebug unit, part of the free JCL.

> Is it possible of keeping track of method names of an application
> from
> a different application..

Sure. You can write any application you want.

> CAll stack does have it but how to retrieve it.. 

The call stack is part of the debugger. The debugger uses the 
information in the DCU files, which it has access to as part of the IDE. 
Your application doesn't have that information itself.

The JclDebug unit uses a map file. You can create a map file on the 
"Linker" page of your project options. That file maps your program's 
addresses onto function names.

-- 
Rob

Reply via email to