i.e.: During my program execution I shutdown my database server by hand. Even implementing BeforeDisconnect and AfterDisconnect, I can't get the error. I think they are probably expecting normal disconnection, like when I call the Disconnect method.
Is there a way to detect connection lost without test it before each SQL command I run ? I don't want to add something like
Code: Select all
if ( ! myDB.IsConnected ) throw DatabaseLostConnection();
before each myTable.Open() or myTable.ExecSQL().
Thanks in advance,
..:: Thiago ::..
Zeos 6.6.3-stable @ BCB 6