bug stopping alerter bcb xe10 seattle

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

bug stopping alerter bcb xe10 seattle

Post by albourgz » Thu 16 Jun 2016 12:33

unsing odac 9.7.24, c++ builder xe10 pro 23.0.21418.4207 .
I have a global TOraSession * GDB in a datamodule, and a TOraAlerter * on a form.
The alerter works correctly, receives messages, ... but an error is triggered when closing the form stops the alerter.
In the OnCloseQuery event, I have

Code: Select all

void __fastcall TFGeneralFrame::FormCloseQuery(TObject *Sender, bool &CanClose)
{
    if (GDB->Connected)
        if (OraAlerterWait->Active)
            OraAlerterWait->Stop();
    CanClose=true;
}
I have to include the stop in a try {} catch(...){} block to avoid the following exception when closing form:
Project cec.exe raised exception class EOraError with message 'ORA-01013: user requested cancel of current operation
ORA-06512: at "SYS.DBMS_ALERT", line 250
ORA-06512: at line 1'.

Why Why Why?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: bug stopping alerter bcb xe10 seattle

Post by AlexP » Mon 20 Jun 2016 09:50

Hello,

The code provided in the post works correctly. Please send your sample reproducing the issue to support*devart*com.

albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

Re: bug stopping alerter bcb xe10 seattle

Post by albourgz » Mon 20 Jun 2016 11:50

This problem occurs only in direct mode.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: bug stopping alerter bcb xe10 seattle

Post by AlexP » Mon 20 Jun 2016 11:59

We can not reproduce the problem in the direct mode either. Please send us a complete example.

albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

Re: bug stopping alerter bcb xe10 seattle

Post by albourgz » Mon 20 Jun 2016 16:28

FYI, workaround: raising Interval from 1000 to 4000 fixes the issue.
It seems ODAC direct mode with Oracle 12c cluster is slower than using 11.2 client against 12c cluster (as problem doesn't happen using oracle 11.2 client).

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: bug stopping alerter bcb xe10 seattle

Post by AlexP » Tue 21 Jun 2016 08:35

Glad to see that you have found the solution. If you have any other questions, feel free to contact us

Post Reply