Solved

ignoring "first chance exceptions" in delphi debugger

Posted on 2010-11-09
3
1,994 Views
Last Modified: 2012-05-10
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.  
Any ideas?
0
Comment
Question by:DirkVerdonck
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 24

Expert Comment

by:jimyX
ID: 34099874
In Delphi IDE:

Go to "Tools" then "Debugger Options" from "Language Exceptions" un-check "Stop on Delphi Exceptions"
0
 

Accepted Solution

by:
DirkVerdonck earned 0 total points
ID: 34099957
found the solution myself.  Sorry jimyX, I've tried what you suggested but that didn't work.

this is how I did it:
tools - options and then debugger options - borland debuggers - native OS exceptions
there I've added an exception class ranging from 0xc0000008 to 0xc0000008, and specified it should be handled by the user program, and on resume "run handled".
Next time I ran the application I got a different error message specifying an exception of "exception class 0xc0000008" had occured, giving me the option to in the future ignore this class of exceptions.
I chose the ignore option and resumed execution.
next time I tried running the app from the debugger everything worked perfectly.
0
 

Author Closing Comment

by:DirkVerdonck
ID: 34130336
I've been trying different things with the debugger options for two days now, I've finally found it.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question