Page 1 of 1

Trapping logon error with Delphi

Posted: Thu 21 Apr 2005 20:35
by tedmondson
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?

Thanks,
Tom

Posted: Fri 22 Apr 2005 14:35
by Ikar
Pay attention to Mydac\Demos\ConnectDialog\ - this demo project includes samples of errors processing.