InterceptCurrentException

Where is the IP set to when an exception is unwound via ICorDebugThread2::InterceptCurrentException?

Response from Sean Selitrennikoff:

Intercepting the exception in the ICorDebug api resets the IP to the previous zero-stack-depth sequence point in the target frame. This may be a portion of a line of code (e.g. if ((a == b) && Foo())), and thus VS often will do a SetIP to reset further to the point in the code where the source line begins.

[642 byte] By [RogerWolff] at [2008-1-12]

.NET Development

Site Classified