Page 1 of 1

MadExcept and ODAC

Posted: Tue Aug 31, 2004 6:43 pm
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

Posted: Wed Sep 01, 2004 9:41 am
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?

Posted: Wed Sep 01, 2004 3:32 pm
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