Trapping logon error with Delphi

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 1
Joined: Thu 21 Apr 2005 19:35
Location: Asheville, NC

Trapping logon error with Delphi

Post by tedmondson » Thu 21 Apr 2005 20:35

I'm experimenting with MySQL DAC with Delphi 5. I'm trying to trap a logon error, such as an invalid password, using the try...except...end structure and display my own error form. However, no matter where I place my trap, the DAC package displays its own error form and a Windows error occurs when closing the form.

How can I trap logon errors?


Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 22 Apr 2005 14:35

Pay attention to Mydac\Demos\ConnectDialog\ - this demo project includes samples of errors processing.

Post Reply