Caller Function Reference
-
Is there any way to get reference of the caller function? In a program, a function calls to another which further calls to some other function and so on. In any function, is it possible that which function transferred controlled to current function? In .NET we can get the current function name using MethodInfo.GetCurrentMethod but this class (MethodInfo) doesn't support the parent function info which called this current method. We need to get that; Any suggestion/help will be appreciated. Thanks, Sameers Need custom software? Contact DevelopersINN[^] Need to add reminders for your Outlook emails? Try Outlook PA[^]
-
Is there any way to get reference of the caller function? In a program, a function calls to another which further calls to some other function and so on. In any function, is it possible that which function transferred controlled to current function? In .NET we can get the current function name using MethodInfo.GetCurrentMethod but this class (MethodInfo) doesn't support the parent function info which called this current method. We need to get that; Any suggestion/help will be appreciated. Thanks, Sameers Need custom software? Contact DevelopersINN[^] Need to add reminders for your Outlook emails? Try Outlook PA[^]
Normally, a method shouldn't be bothered with things like which method is calling it. Why do you think that you need that? The information is in the call stack. One method of getting that is to throw an exception and catch it, then you get an exception object that contains an analysis of the call stack. Not a very efficient method, though. --- b { font-weight: normal; } -- modified at 4:23 Sunday 8th January, 2006
-
Is there any way to get reference of the caller function? In a program, a function calls to another which further calls to some other function and so on. In any function, is it possible that which function transferred controlled to current function? In .NET we can get the current function name using MethodInfo.GetCurrentMethod but this class (MethodInfo) doesn't support the parent function info which called this current method. We need to get that; Any suggestion/help will be appreciated. Thanks, Sameers Need custom software? Contact DevelopersINN[^] Need to add reminders for your Outlook emails? Try Outlook PA[^]
See this[^] post. Regards Senthil _____________________________ My Blog | My Articles | WinMacro
-
See this[^] post. Regards Senthil _____________________________ My Blog | My Articles | WinMacro
Thanks for the link. It works. Great. Thanks again, Need custom software? Contact DevelopersINN[^] Need to add reminders for your Outlook emails? Try Outlook PA[^]