Windows Vista Beta | WinVistaBeta.com - Message | print call stack

November 20, 2008  
Subject: print call stack
Group: microsoft.public.vstudio.general
Date: 8/20/2008 1:09:26 AM
From: "Anonymous" [Email Address Protection]

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

Using .net (aspnet in vs 2008).





Back
Subject: Re: print call stack
Group: microsoft.public.vstudio.general
Date: 8/20/2008 8:47:52 AM
From: Larry [Email Address Protection]

On Aug 20, 2:09=A0am, "Anonymous" <bi...@microsoft.com> wrote:
> How do I programatically write the names of the functions on the call sta=
ck
> to a log file?

System.Diagnostics.StackTrace, as in:
string myCaller =3D new
StackTrace()).GetFrame(1).GetMethod().ToString();



Back