Page 1 of 1

Connection los (MySQL 5.0.27 / MyDAC 4.40.0.21

Posted: Wed 17 Jan 2007 22:04
by Hans
Hi,

I created an application using Delphi7 and the MyDAC components. Now it seems that sometimes (a couple of times a week) i get a connection error:

- Error Class: EMyError
- Error Message:Lost connection to MySQL server during query Socket error on write. WSAGetLastError return 10053($2745)

I would very uch appreciate an an example how to handle this, since no it generates a windows error?

Posted: Thu 18 Jan 2007 07:22
by Antaeus
To handle such errors you should place corresponding code to the OnError event handler of your TMyConnection object. To prevent showing error message box by MyDAC, you should change value of the Fail parameter to False in this event handler.