Basically I’ve heard that certain conditions will cause .NET to blow past the finally block. Does anyone know what those conditions are?
Basically I’ve heard that certain conditions will cause .NET to blow past the finally
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Two possibilities:
The finally block will not be executed when there’s a
StackOverflowExceptionsince there’s no room on the stack to even execute any more code. It will also not be called when there’s anExecutionEngineException, which may arise from a call toEnvironment.FailFast().