Undeclared identifier 'TConnLostCause'

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
erva
Posts: 8
Joined: Sat 29 Feb 2020 15:59

Undeclared identifier 'TConnLostCause'

Post by erva » Fri 20 Mar 2020 20:03

When i double click MSConnection.OnConnectionLost event handler, automatically created code in procedures have undeclared identifier TConnLostCause.

How to solve this problem?

Stellar
Devart Team
Posts: 496
Joined: Tue 03 Oct 2017 11:00

Re: Undeclared identifier 'TConnLostCause'

Post by Stellar » Mon 23 Mar 2020 07:17

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

Post Reply