Print Thread
Exception handling for C++ Builder 64 bit
#49644 10/08/14 01:03 PM
Joined: May 2009
Posts: 7
Germany
M
MDonath Offline OP
Member
OP Offline
Member
M
Joined: May 2009
Posts: 7
Germany
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

Re: Exception handling for C++ Builder 64 bit
MDonath #49649 10/09/14 09:23 AM
Joined: Aug 1999
Posts: 22,176
Member
Offline
Member
Joined: Aug 1999
Posts: 22,176
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?


Marco Kalter
Allround Automations
Re: Exception handling for C++ Builder 64 bit
Marco Kalter #49651 10/09/14 10:02 AM
Joined: May 2009
Posts: 7
Germany
M
MDonath Offline OP
Member
OP Offline
Member
M
Joined: May 2009
Posts: 7
Germany
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


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.024s Queries: 15 (0.006s) Memory: 2.5021 MB (Peak: 3.0392 MB) Data Comp: Off Server Time: 2024-03-29 13:21:57 UTC
Valid HTML 5 and Valid CSS