Getting exception when closing TMyQuery

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
piedsoftware
Posts: 7
Joined: Thu 14 Feb 2013 06:40
Location: Brisbane, Australia

Getting exception when closing TMyQuery

Post by piedsoftware » Thu 12 Dec 2013 10:53

Hi,

I'm testing out the effects of the FetchAll property, because we have been having slowness issues with TMyQuery.

I find that I am getting EMySqlException "Lost connection to MySQL server during query" when closing a TMyQuery with FetchAll false.

Any ideas why this might be happening?

TIA
Mark

AndreyZ

Re: Getting exception when closing TMyQuery

Post by AndreyZ » Thu 12 Dec 2013 14:08

Hello,

Such MyDAC behaviour is correct, it is caused by specificity of working with not fetched data. You will see the 'Lost connection to MySql server during query' error only if you run your application from IDE. You will not see this error when you run the executable file of your application.

piedsoftware
Posts: 7
Joined: Thu 14 Feb 2013 06:40
Location: Brisbane, Australia

Re: Getting exception when closing TMyQuery

Post by piedsoftware » Fri 13 Dec 2013 00:19

Thanks, that makes sense.

AndreyZ

Re: Getting exception when closing TMyQuery

Post by AndreyZ » Fri 13 Dec 2013 13:44

You are welcome. Feel free to contact us if you have any further questions about MyDAC.

Post Reply