S
Sankar Nemani
Hi All,
When I create a new StackTrace object using
System.Diagnostics.StackTrace class, it does not seem to
have the complete stacktrace of the calls as it is in the
source code. We suspect it is due to optimizations. But
even the il code contains calls to all functions matching
the source code. So it must be optimizations made at
runtime. If it is true that due to optimizations, the
stack will be different, how do we choose to not do the
runtime optimizations? And more importantly why does
windows forms code does not do any optimizations and
contains full stack as in source code?
TIA
Sankar Nemani
When I create a new StackTrace object using
System.Diagnostics.StackTrace class, it does not seem to
have the complete stacktrace of the calls as it is in the
source code. We suspect it is due to optimizations. But
even the il code contains calls to all functions matching
the source code. So it must be optimizations made at
runtime. If it is true that due to optimizations, the
stack will be different, how do we choose to not do the
runtime optimizations? And more importantly why does
windows forms code does not do any optimizations and
contains full stack as in source code?
TIA
Sankar Nemani