Understanding: The First Chance exception of type 'Exception Name' occurred in 'dll Name'

From time to time I read it in the output panel.
Just why and when does this happen?

+5
source share
2 answers

This will happen if an exception is thrown, but then caught. There are a few bits of structure that do this at a depressing frequency ... but usually you can ignore it. If this happens very often, and you think that it can affect performance, you can always try to figure out what causes it and see if there is anything you can do to stop it - but in my experience this usually happens in perfectly normal situations :(

To find out where this happens, go to the debugger options and make it break as soon as an exception occurs - this way you should get a stack trace that at least shows if any of your codes will be directly contact the framework code.

, DLL , , ... , :)

+12

. . (, , catch). , , , , . , , . . :

,

+4

All Articles