How to handle C-sharp exception.
what can i do ,in exception there are three block try,catch,and finally,but i want in my code finally is written but never excuted?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Jul 4, 2012, 11:31 PM
I think,The finally block will not be executed when Exception type is a StackOverflowException because there is no roomto execute more code. It will also not be called when Exception type is an ExecutingEngineException, which is very rare.
so kindly check exception type.
hope this will help you.
Sharad GuptaPosted Jul 4, 2012, 10:37 PM
Gopal MahadakPosted Jul 3, 2012, 11:05 PM
so u are not suppose to change its structure...
best way is that don't use finally block after catch block.. it works..
Gopal