Dennis wrote:
Is there any way to find out what is causing a "First Chance Exception"?
Odd though it may seem, Exceptions are actually "thrown" /twice/:
The first "throw" is the run-time walking the call-stack in search of a
suitable "Catch" block to deal with the Exception.
The second is what /we/ would call "throwing" the Exception, executing
all the intermediate Finally blocks before resuming at the start of the
selected Catch block.
That first pass is a "First Chance" Exception; it's an Exception in
search of a Catch block to handle it but not yet "really" thrown.
Also, is there anyway to turn them off...
Not AFAIK.
I'm getting hundreds but all seems to run OK.
This is perfectly normal where Exceptions are being thrown and properly
caught.
HTH,
Phill W.