Basically I've heard that certain conditions will cause .net to blow past the finally block. Does anyone know what those conditions are?
Two possibilities:
The finally block will not be executed when there's a StackOverflowException since there's no room on the stack to even execute any more code. It will also not be called when there's an ExecutionEngineException, which may arise from a call to Environment.FailFast().
StackOverflowException
ExecutionEngineException
Environment.FailFast()
1.4m articles
1.4m replys
5 comments
57.0k users