<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>24 Jul 2018 22:34:17 Z</lastBuildDate><pubDate>15 Apr 2016 21:17:00 Z</pubDate><description>Finally I was able to manage my own timeout in failing HOpenConnection on MySql (Native Access) with a trick and threads.&#13;
&#13;
And what if the connection to Mysql service fails during the normal working session, after a successful connection opening? Is there a way to prevent the 20 second standard waiting and having the program in idle for all this time after a query?&#13;
&#13;
In practice, for giving a real sample, I estabilish the connection with a common hopenconnection running fine. Then I run a simple query just after removing the internet cable (stopping mysql service has the same effect). Now the program hangs (window not responding) for 20 seconds before getting the error message "lost connection, error 79". A HExecuteQuery in this condition is locking.&#13;
Obviously checking the connection before each query is not an option. I want to trap and manage quickly the exception.&#13;
&#13;
Thank you.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp</link><title>Timeout on failed MySql queries if you lose connection</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>BigED</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66349/read.awp</comments><pubDate>24 Jul 2018 22:34:17 Z</pubDate><description>This code does not work:&#13;
&#13;
[code:wl]&#13;
c1, c2 is connection&#13;
ds1, ds2 is data source&#13;
&#13;
HOpenConnection(C1)&#13;
SQLTransaction(sqlS…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66349/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66349/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp">Timeout on failed MySql queries if you lose connection</source><title>Re: Timeout on failed MySql queries if you lose connection</title></item><item><author>BigED</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66337/read.awp</comments><pubDate>24 Jul 2018 16:38:26 Z</pubDate><description>Yes off course, but thats nothing to do with the issue.&#13;
In MySQL Native Acces all timeout parameters is ignored, so you must se…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66337/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66337/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp">Timeout on failed MySql queries if you lose connection</source><title>Re: Timeout on failed MySql queries if you lose connection</title></item><item><author>pa_oliveira</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66329/read.awp</comments><pubDate>24 Jul 2018 13:09:12 Z</pubDate><description>did you try using the WD Connection Timeout and WD Command Timeout in the ExtendedInfo of the Connection .&#13;
https://doc.windev.c…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66329/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66329/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp">Timeout on failed MySql queries if you lose connection</source><title>Re: Timeout on failed MySql queries if you lose connection</title></item><item><author>BigED</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66328/read.awp</comments><pubDate>24 Jul 2018 12:10:59 Z</pubDate><description>Did you ever find solution for that probem?&#13;
&#13;
Best regards!</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66328/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-66328/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp">Timeout on failed MySql queries if you lose connection</source><title>Re: Timeout on failed MySql queries if you lose connection</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57333/read.awp</comments><pubDate>17 Apr 2016 23:14:00 Z</pubDate><description>I give up, it's no use.&#13;
H functions on mysql NA hang the application until they return a result. If the mysql service goes down…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57333/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57333/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp">Timeout on failed MySql queries if you lose connection</source><title>Re: Timeout on failed MySql queries if you lose connection</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57325/read.awp</comments><pubDate>16 Apr 2016 17:07:00 Z</pubDate><description>Rollback... Not solved.&#13;
&#13;
Inspecting MySql log i saw that each&#13;
HChangeConnection("*", ConnectionName)&#13;
will close the current …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57325/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57325/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp">Timeout on failed MySql queries if you lose connection</source><title>Re: Timeout on failed MySql queries if you lose connection</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57324/read.awp</comments><pubDate>16 Apr 2016 16:50:00 Z</pubDate><description>SOLVED!!&#13;
&#13;
HChangeConnection("*", ConnectionName)&#13;
before each hanging query. I don't know why and how but this make sudden fai…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57324/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57324/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp">Timeout on failed MySql queries if you lose connection</source><title>Re: Timeout on failed MySql queries if you lose connection</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57323/read.awp</comments><pubDate>16 Apr 2016 10:24:00 Z</pubDate><description>When opening the connection I run the hopenconnection in a secondary thread and check its status in the main thread.&#13;
Example: u…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57323/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57323/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp">Timeout on failed MySql queries if you lose connection</source><title>Re: Timeout on failed MySql queries if you lose connection</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57321/read.awp</comments><pubDate>16 Apr 2016 08:58:00 Z</pubDate><description>Hi Stefano,&#13;
&#13;
Can you explain how you managed your timeout?&#13;
And do you manage the connection error? Reconnecting instead of cr…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57321/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57321/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp">Timeout on failed MySql queries if you lose connection</source><title>Re: Timeout on failed MySql queries if you lose connection</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57320/read.awp</comments><pubDate>16 Apr 2016 08:06:00 Z</pubDate><description>I agree but it's a pos software.&#13;
Having a cashier locked on sunday with a 20 people queue and the app freezed before switching …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57320/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57320/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp">Timeout on failed MySql queries if you lose connection</source><title>Re: Timeout on failed MySql queries if you lose connection</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57319/read.awp</comments><pubDate>16 Apr 2016 07:54:00 Z</pubDate><description>Hi,&#13;
&#13;
shortening the time out time may not be good idea .&#13;
specially on&#13;
- Big Database&#13;
the server may take long time to proce…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57319/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection-57319/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57317-timeout-failed-mysql-queries-you-lose-connection/read.awp">Timeout on failed MySql queries if you lose connection</source><title>Re: Timeout on failed MySql queries if you lose connection</title></item></channel></rss>
