Page 1 of 1
Undeclared identifier 'TConnLostCause'
Posted: Fri 20 Mar 2020 20:03
by erva
When i double click MSConnection.OnConnectionLost event handler, automatically created code in procedures have undeclared identifier TConnLostCause.
How to solve this problem?
Re: Undeclared identifier 'TConnLostCause'
Posted: Mon 23 Mar 2020 07:17
by Stellar
To use the OnConnectionLost event handler, you should explicitly add the MemData unit to the 'uses' list and set the TCustomDAConnection.Options.LocalFailover property to True.
More details about OnConnectionLost here:
devart.com/sdac/docs/devart.dac.tcustomdaconnection.onconnectionlost.htm