Any exceptions are there which are not caught by any catch
blocks?
what are they?

Answer Posted / piyush sharma

1) If you are writting managed Code and using proper try
catch block then there
is no such exception which cannot be caught. Yes, But
sometimes it happens
that you have written correct try catch block but exception
is still
unhandled. This type of exception is called First Chance
Exception. As you
can come across it while developing web services or working
with threads.

Now What is a first chance exception?
When an application is being debugged, the debugger gets
notified whenever
an exception is encountered At this point, the application
is suspended and
the debugger decides how to handle the exception. The first
pass through this
mechanism is called a "first chance" exception. Depending
on the debugger's
configuration, it will either resume the application and
pass the exception
on or it will leave the application suspended and enter
debug mode. If the
application handles the exception, it continues to run
normally.

2)The only one I can think of
offhand is StackOverflowException, since a catch block, or
any of the
global exception handlers you can write require stack space
in order to
execute. If you're out of stack you can't call anything...
including an
exception handler.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When Should You Call The Garbage Collector In .net?

549


What is difference between list and ilist in c#?

466


What are the advantages of using partial classes?

529


Explain when should you call the garbage collector in .net?

477


What are c# collections?

473






What are the benefits of using the aggregate method in linq?

501


explain the nature of the assembly work?

2097


What is readline library?

502


What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?

590


What is the difference between readkey and readline in c#?

450


What is a hash table in c#?

510


Write one code example for compile time binding and one for run time binding? What is early/late binding?

597


How do I create a multilanguage?

510


How do I create a new form in c#?

482


In c#, what will happen if you do not explicitly provide a constructor for a class?

516