Page 1 of 1

Getting exception when closing TMyQuery

Posted: Thu 12 Dec 2013 10:53
by piedsoftware
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

Re: Getting exception when closing TMyQuery

Posted: Thu 12 Dec 2013 14:08
by AndreyZ
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.

Re: Getting exception when closing TMyQuery

Posted: Fri 13 Dec 2013 00:19
by piedsoftware
Thanks, that makes sense.

Re: Getting exception when closing TMyQuery

Posted: Fri 13 Dec 2013 13:44
by AndreyZ
You are welcome. Feel free to contact us if you have any further questions about MyDAC.