Posted By: MDonath Exception handling for C++ Builder 64 bit - 10/08/14 01:03 PM
Congratulations,

in C++ Builder XE7 it is possible to use DOA even if an exception (EOracleError) occurs.
In C++ Builder XE3 that is not possible, the program crashes on every EOracleError.

Is it possible to have this feature in XE3 too?

MD
It should work just fine, both in XE3 and XE7. Nothing has changed with regard to exception handling. Do you get any error message in XE3?
My example:

void __fastcall TForm1::Button1Click(TObject *Sender)
{
try
{
Os->LogOn();
Oq->SQL->Text = "SELECT SYSDATE FROM PUAL";
Oq->Execute();
ShowMessage(Oq->FieldAsDate(0).DateTimeString());
Os->LogOff();
}
catch(Exception& e)
{
Application->ShowException(&e);
}
}

If the statement is valid all is good, but this incorrect statement causes a release version of this program to crash and in debugger the following message box occurs:

http://1drv.ms/1CXodJI

In my XE3 version and in trial versions of XE4, XE5, XE6 this behavior is identical.
In trial version XE7 all is fine.

MD
© Allround Automations forums