<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>3 Aug 2015 07:14:00 Z</lastBuildDate><pubDate>3 Aug 2015 07:14:00 Z</pubDate><description>I doing a test to run a procedure in the thread.&#13;
in main thread&#13;
&#13;
Info("start")&#13;
M_cnt is int = 1&#13;
M_scnt is string&#13;
LOOP (20)&#13;
M_scnt = "cnt0" + NumToString(M_cnt)&#13;
ThreadExecute(M_scnt, threadNormal, test)&#13;
M_cnt++&#13;
Multitask(100)&#13;
&#13;
END&#13;
&#13;
Info("done")&#13;
&#13;
-------------------------------------------------------------------------------------&#13;
PROCEDURE test()&#13;
&#13;
m_sql is string = [&#13;
SELECT count(People_Name) FROM People&#13;
ORDER BY People_Name&#13;
LIMIT 4000;&#13;
&#13;
]&#13;
&#13;
M_QRY is Data Source&#13;
&#13;
WHEN EXCEPTION IN&#13;
&#13;
IF SQLConnectWS(G_DB_WebService, G_DB_Server,G_DB_UID, G_DB_PWD, G_DB_Name, G_DB_Type) = 0 THEN ExceptionThrow(1,"Error SQLConnectWS (" + G_DB_WebService + ")" )&#13;
&#13;
IF SQLExec(m_sql, M_QRY) = False THEN&#13;
SQLInfo()&#13;
Info("Error SQLExec " , SQL.MesError)&#13;
ELSE&#13;
&#13;
END&#13;
&#13;
DO&#13;
SQLInfo()&#13;
Error( "Exception Occured : " + CR+ ExceptionInfo(), "Error code : " + SQL.Error , "Error Message : " + CR + SQL.MesError)&#13;
END&#13;
&#13;
&#13;
IF SQLReqExists(M_QRY) = True THEN SQLClose(M_QRY)&#13;
SQLDisconnect()&#13;
&#13;
&#13;
---------------------------------------------------------------------------------------------------------&#13;
here the log from webservice&#13;
&#13;
_ 20150803043323 AWWS wdsoapdb *ERROR* ERR_MSG_BOX 0 192.168.43.211 wdsoapdb&#13;
Que s'est-il passé ?&#13;
The query parameter was not found.&#13;
&#13;
Code erreur : 40089&#13;
Niveau : erreur non fatale (EL_ONRETURN)&#13;
&#13;
Dump de l'erreur du module 'wd200xml64.dll' (20.0.31.0).&#13;
0&#13;
_ 20150803043323 AWWS wdsoapdb *ERROR* ERR_MSG_BOX 0 192.168.43.211 wdsoapdb&#13;
Que s'est-il passé ?&#13;
The query parameter was not found.&#13;
&#13;
Code erreur : 40089&#13;
Niveau : erreur non fatale (EL_ONRETURN)&#13;
&#13;
Dump de l'erreur du module 'wd200xml64.dll' (20.0.31.0).&#13;
0&#13;
&#13;
&#13;
----------------------------------------------------------------------------------------------------------&#13;
Summary&#13;
&#13;
after the test i discover , if without Multitask(100) after ThreadExecute() . this will generate fatal.&#13;
&#13;
but even with Multitask(100) , this is not bullet proof solution . when i run 10 times of the main thread, i get once fatal error . I try by set Multitask(200) . after that I don't get the error.&#13;
&#13;
how long multitask need to set ? my guess is depend your query .</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53360-wm20-android-threadexecute-and-webservice-not-stable/read.awp</link><title>[WM20 (android )] ThreadExecute() and DB webservice not stable</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
