<?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 11:50:06 Z</lastBuildDate><pubDate>23 Aug 2016 15:49:30 Z</pubDate><description>I got myself a heavy duty query that takes about 10-20 seconds to execute. So of course I moved the query into a separate, background thread and just had it populate a collection of data structures and I set my thread-mode to Multi-Processor and Critical-Section.&#13;
&#13;
This is wonderful -- the query executes in the separate thread and my GUI is still responsive and whatnot.&#13;
&#13;
HOWEVER -- if I were to execute a query on the main thread (a small, itty-bitty query) while the background-thread's query is executing, the main thread hangs up. It needs to wait for the background-thread's query to finished executing before it can execute the main thread's query. &#13;
&#13;
So, I thought that was a bit odd and that maybe it was a problem on the server/database side not being able to handle 2 connections belonging to the same process. So I forced the background-thread to connect to a different server. But that did not change anything at all.&#13;
&#13;
So now my question --- is there a mutex on the function HExecuteSQLQuery in the WinDev framework? - or what else would be preventing me from having 2 queries execute at the same time on completely different servers and databases?</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries/read.awp</link><title>[WD21] - Question concerning connections &amp; queries</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/59179-wd21-question-concerning-connections-queries-66326/read.awp</comments><pubDate>24 Jul 2018 11:50:06 Z</pubDate><description>Did you ever find a solution for this problem?&#13;
&#13;
I have similar issue with NativeMYSql connection.&#13;
&#13;
Best regards!</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries-66326/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries-66326/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries/read.awp">[WD21] - Question concerning connections &amp; queries</source><title>Re: [WD21] - Question concerning connections &amp; queries</title></item><item><author>Andrew</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries-59205/read.awp</comments><pubDate>24 Aug 2016 13:20:22 Z</pubDate><description>Yup - I'm using threadFullCopyHFSQLContext in my ThreadExecute() call.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries-59205/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries-59205/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries/read.awp">[WD21] - Question concerning connections &amp; queries</source><title>Re: [WD21] - Question concerning connections &amp; queries</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries-59182/read.awp</comments><pubDate>23 Aug 2016 18:38:45 Z</pubDate><description>Hi Andrew,&#13;
&#13;
is your secondary thread using a separate HF contect or not?&#13;
&#13;
Best regards&#13;
&#13;
-- &#13;
Fabrice Harari&#13;
International…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries-59182/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries-59182/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59179-wd21-question-concerning-connections-queries/read.awp">[WD21] - Question concerning connections &amp; queries</source><title>Re: [WD21] - Question concerning connections &amp; queries</title></item></channel></rss>
