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;
}
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?