|
From: Rich Hanbidge MSFT on 25 Jun 2008 10:46 Hello, Is there a way in the Compact Framework to access the callstack/stacktrace of the currently executing thread? I'd like to simulate what Environment.StackTrace does. Cheers! Rich
From: Peter Foot on 25 Jun 2008 11:39 The StackTrace is only accessible from a thrown exception (and only from ..NETCF 2.0 and later). Alternatively you can view the stacktrace on screen using the Debug.Fail dialog. Peter -- Peter Foot Microsoft Device Application Development MVP peterfoot.net | appamundi.com | inthehand.com APPA Mundi Ltd - Software Solutions for a Mobile World In The Hand Ltd - .NET Components for Mobility "Rich Hanbidge MSFT" <RichHanbidgeMSFT(a)discussions.microsoft.com> wrote in message news:1887ABE1-9CFA-4F06-BA50-E2DC1E591BEC(a)microsoft.com... > Hello, > Is there a way in the Compact Framework to access the callstack/stacktrace > of the currently executing thread? I'd like to simulate what > Environment.StackTrace does. > > Cheers! > > Rich
From: Rich Hanbidge MSFT on 25 Jun 2008 11:51 Hi Peter, Thanks for the quick response! What I'm trying to do is find the namespace of the calling method. If you have any creative ideas, please let me know. It's no biggie though, we can live without the functionality. Cheers! "Peter Foot" wrote: > The StackTrace is only accessible from a thrown exception (and only from > .NETCF 2.0 and later). Alternatively you can view the stacktrace on screen > using the Debug.Fail dialog. > > Peter > > -- > Peter Foot > Microsoft Device Application Development MVP > peterfoot.net | appamundi.com | inthehand.com > APPA Mundi Ltd - Software Solutions for a Mobile World > In The Hand Ltd - .NET Components for Mobility > > "Rich Hanbidge MSFT" <RichHanbidgeMSFT(a)discussions.microsoft.com> wrote in > message news:1887ABE1-9CFA-4F06-BA50-E2DC1E591BEC(a)microsoft.com... > > Hello, > > Is there a way in the Compact Framework to access the callstack/stacktrace > > of the currently executing thread? I'd like to simulate what > > Environment.StackTrace does. > > > > Cheers! > > > > Rich >
From: Chris Tacke, MVP on 25 Jun 2008 12:10 Depending on your need (basically if slowness matters) you can always throw an exception inside a try/catch to get the stack trace in the catch block and then just move on afterward. It works, but the perf sucks. -Chris "Rich Hanbidge MSFT" <RichHanbidgeMSFT(a)discussions.microsoft.com> wrote in message news:CE8ED130-EE26-438B-AC60-714A1CF21E4B(a)microsoft.com... > Hi Peter, > Thanks for the quick response! > What I'm trying to do is find the namespace of the calling method. If you > have any creative ideas, please let me know. It's no biggie though, we > can > live without the functionality. > > Cheers! > > "Peter Foot" wrote: > >> The StackTrace is only accessible from a thrown exception (and only from >> .NETCF 2.0 and later). Alternatively you can view the stacktrace on >> screen >> using the Debug.Fail dialog. >> >> Peter >> >> -- >> Peter Foot >> Microsoft Device Application Development MVP >> peterfoot.net | appamundi.com | inthehand.com >> APPA Mundi Ltd - Software Solutions for a Mobile World >> In The Hand Ltd - .NET Components for Mobility >> >> "Rich Hanbidge MSFT" <RichHanbidgeMSFT(a)discussions.microsoft.com> wrote >> in >> message news:1887ABE1-9CFA-4F06-BA50-E2DC1E591BEC(a)microsoft.com... >> > Hello, >> > Is there a way in the Compact Framework to access the >> > callstack/stacktrace >> > of the currently executing thread? I'd like to simulate what >> > Environment.StackTrace does. >> > >> > Cheers! >> > >> > Rich >>
|
Pages: 1 Prev: RasHangUp Next: MouseMove is fired every time I click on pictureBox |