Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Wed, 20 Aug 2008 10:09:26 +0200,    group: microsoft.public.vstudio.general        back       


print call stack   
How do I programatically write the names of the functions on the call stack
to a log file?

Using .net (aspnet in vs 2008).
date: Wed, 20 Aug 2008 10:09:26 +0200   author:   Anonymous

Re: print call stack   
On Aug 20, 2:09 am, "Anonymous"  wrote:
> How do I programatically write the names of the functions on the call stack
> to a log file?

System.Diagnostics.StackTrace, as in:
string myCaller = new
StackTrace()).GetFrame(1).GetMethod().ToString();
date: Wed, 20 Aug 2008 08:47:52 -0700 (PDT)   author:   Larry

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us