MadExcept and ODAC

delphi package - automated exception handling
Post Reply
brekhof
Posts: 2
Joined: Tue Aug 31, 2004 6:40 pm

MadExcept and ODAC

Post by brekhof »

Below a message I send to ODAC support (www.crlab.com), does this problem ring a bell with any of the MadExcept users (not necessarily together with ODAC)?

Quote:
(Delphi 5, ODAC 5.10.1.7)
I'm using MadExcept since a few weeks and it looks like there be some problems with Odac 5.10.1.x and MadExcept or I'm just making misstakes, however: using Odac 3.90 takes away the problem.

Situation (pseudo code):

Procedure processqueryB
Begin
QueryB.Close
Try
...
QueryB.Insert;
...
QueryB.Post;
Except
On E:EDatabaseError do // sometimes an exception
... // (trigger generated with raise_application_error)
...
end
End

Procedure MainLoop
..
While not QueryA.Eof do
Begin
ProcessQueryB
Next; // <-- program crash!!
End

Question:
Are there any known problems that could explain this problem?

Regards,
Martin
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

What kind of crash do you get? Dr. Watson? Or do you get a madExcept exception box? And the problem goes away if you remove madExcept?
brekhof
Posts: 2
Joined: Tue Aug 31, 2004 6:40 pm

Post by brekhof »

madshi wrote:What kind of crash do you get? Dr. Watson? Or do you get a madExcept exception box? And the problem goes away if you remove madExcept?
I'm sorry, I was able to reproduve the problem without MadExcept, seem to be ODAC related.

The program altogether disappears (stop running) without MadExcept being able to intercept the exception (not even sure an exception is raised)

Nevertheless, I think I'll be ordering MadExcept this week.

regards,
Martin
Post Reply