Solved

Get methodname at runtime

Posted on 2002-06-01
3
290 Views
Last Modified: 2010-04-04
Hi Guys,

Does anyone know how to retrieve the name of a calling method? For example:

A -> Z
B -> Z
C -> Z

Different methods can call method Z, and Z likes to know the methodnames of the caller.

This is for a logging component i'm creating.
0
Comment
Question by:bassch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
robert_marquardt earned 100 total points
ID: 7048627
Without extra information it should only possible for published elements of a class. published means that the name is added to the RTTI.
Have a look at the Jedi Code Library http://delphi-jedi.org/CODELIBJCL it contains a nice debuugging extension which adds the MAP file to the exe which then allows to unwind the stack with names.
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9010407
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from robert_marquardt

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
code issue 8 183
Delphi selector screen 2 92
How to convert memory stream to PDF file 6 173
how to resize animated Gif image in delphi ? 1 45
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question