ignoring "first chance exceptions" in delphi debugger
Posted on 2010-11-09
I'm coding an app that commicates with a database, partly through messages sent from a stored proc in the DB.
When the app is run from windows, everything works fine, but when I run it from the debugger, the trouble starts as soon as it receives a message from the DB and replies to it.
Delphi stops execution at this point, and shows an error window titled "Debugger fault notification", where it says "Project xxx faulted with message: "system exception (code 0xc0000008) at 0x7c90eb74'. Process stopped. Use step or run to continue."
I've googled the error codes, and found some stuff on first chance exceptions, meaning the exception is handled succesfully by the app (in this case a third-party dll responsible for the message handling) but when debugging it halts execution. It has something to do with the handle of the message object not being handled correctly. But I have no influence over this because this stuff is done inside a dll of wich I have only the interface, not the source code.
Now I would like to know how to determine exactly wich exception this is, so I can tell delphi to ignore it, in the debugger options.
Sometimes delphi offers the possibility to ignore this kind of exception", but in this case it does not. It's a real pain that the debugger pops up everytime my app gets a message, so I would really like to turn this off.