Anthony, You can use the TargetSite<http://msdn.microsoft.com/en-us/library/system.exception.targetsite.aspx>property on the Exception class to access information about the method that caused the exception to be thrown... this causes a walk of the call stack, which has a performance overhead and also may not succeed in all cases, depending on the situation.
Cheers, Joe. On Fri, Jul 30, 2010 at 9:48 PM, Anthony <[email protected]> wrote: > Sorry Exception Handling Application > Block<http://msdn.microsoft.com/en-us/library/ff664698%28v=PandP.50%29.aspx>from > Microsoft > > > > I have already done what you have mentioned but would be nice to retrieve > the parameters of a function. I know i can manually code this for each > function..but would be nice to use some sort of reflection to automate > this.. > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Glen Harvy > *Sent:* Friday, 30 July 2010 5:47 PM > *To:* ozDotNet > *Subject:* Re: Retrieve parameters > > > > Trap the error and any required data in a tcf and then upload the data to a > website for you to process etc. > > Trap unhandled exceptions with > Application.ThreadException += OnThreadException; > and do the same. > > What's an Exception Block? > > On 30/07/2010 3:08 PM, Anthony wrote: > > Adding some debugging cod to my winforms application. > > > > When an exception is raised..i want the application to send me the error > with the parameters passed? Can i use reflection to do this? Or is there a > better way? > > > > Do people use the Exception Block by MS or roll their own? > > > > > > Is your website being > IntelliXperienced?<http://www.intellixperience.com/signup.aspx> > | www.yougoingmyway.com ? > regards > Anthony (*12QWERNB*) > > Is your website being IntelliXperienced? > > > > > > >
