OnConnectionLost

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
777Yves
Posts: 37
Joined: Mon 09 Aug 2010 19:55
Location: Québec

OnConnectionLost

Post by 777Yves » Mon 26 Sep 2011 13:26

Hi, in tMyConnection when I click on OnConnectionLost, in the source code,
TConnLostCause is underscore in red so probably a uses clause is missing,

witch one ?

Code: Select all

procedure TDmGest.adGestConnectionLost(Sender: TObject; Component: TComponent;
  ConnLostCause: TConnLostCause; var RetryMode: TRetryMode);
begin

end;
Thanks

AndreyZ

Post by AndreyZ » Mon 26 Sep 2011 15:08

Hello,

To solve the problem, you should add the MemData unit to the USES clause of your unit. You can find a note about that in the description of the OnConnectionLost event in the MyDAC documentation.

777Yves
Posts: 37
Joined: Mon 09 Aug 2010 19:55
Location: Québec

OnConnectionLost

Post by 777Yves » Mon 26 Sep 2011 18:40

Hi, you are rigth, I apology. I did not check at the right place.

Post Reply