Re: [ADVANCED-DOTNET] Confirmation of System.Diagnostics.StackFrame behavior

2006-05-12 Thread David L. Penton
Thanks! I really didn't want to have to compile in debug, so NoInlining does the trick. Mark Hurd wrote: The JIT compiler is inlining them. If you compile with -debug+ or add using System.Runtime.CompilerServices; and [MethodImpl(MethodImplOptions.NoInlining)] prior to the methods

Re: [ADVANCED-DOTNET] Confirmation of System.Diagnostics.StackFrame behavior

2006-05-12 Thread Mark Hurd
The JIT compiler is inlining them. If you compile with -debug+ or add using System.Runtime.CompilerServices; and [MethodImpl(MethodImplOptions.NoInlining)] prior to the methods you need in the stack, you can guarantee it to be so. Regards, Mark Hurd, B.Sc.(Ma.)(Hons.) ===

[ADVANCED-DOTNET] Confirmation of System.Diagnostics.StackFrame behavior

2006-05-12 Thread David L. Penton
Hello, I have been testing some code (v1.1) dealing with the StackTrace and StackFrame classes. I have found some interesting things about the StackFrames that I can't explain [with documentation] when deriving classes and getting the StackFrame information from that. If I have the following c