<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>7 Oct 2016 02:36:00 Z</lastBuildDate><pubDate>7 Oct 2016 02:36:00 Z</pubDate><description>I was structuring some code, moving it into internal procedures. I did this in some thread procedures. I started having stability problems and eventually tracked it to procedure calls within the internal procedures (for example hWrite and API) where after several hours of working correctly I would get an error message such as shown below. The line of code was&#13;
&#13;
HWrite(PlayerStatus,1)&#13;
&#13;
and PlayerStatus was a file correctly defined in the analysis. Once I replace the internal procedure calls with in-line code the stability problems went away.&#13;
&#13;
06/10/2016 15:17:28:36 Program Restarted - Error Condition - GP_Error - Error Description Follows&#13;
WL call:&#13;
Process of 'Internal procedure IP_WriteStatus' (GlobalProcedures.GP_ServerInterfaceThread), line 40, thread 0&#13;
'HWrite' function, syntax 2&#13;
&#13;
What happened?&#13;
The data source is not initialized.&#13;
- If it is a data file, the file was not found in the analysis or it was not described by HDeclare/HDeclareExternal.&#13;
- If it is a query or a view, the execution may have failed.&#13;
To retrieve the corresponding error, check the result of HExecuteQuery/HExecuteSQLQuery/HCreateView.&#13;
&#13;
Error code: 70018&#13;
Level: fatal error&#13;
WD55 error code: 18&#13;
&#13;
Dump of the error of 'wd210hf.dll' module (21.0.124.0).&#13;
Identifier of detailed information (.err): 70116&#13;
Debugging information:&#13;
IEWDHF=1.20&#13;
Module=&#13;
Version=&lt;21.0.124.0&gt;&#13;
Fonction (7,3)&#13;
Additional Information:&#13;
EIT_PATHWDD :&#13;
EIT_LOGICALTABLENAME :&#13;
EIT_PILEWL :&#13;
Internal procedure IP_WriteStatus (GlobalProcedures.GP_ServerInterfaceThread), line 40&#13;
Global Procedure GP_ServerInterfaceThread (GlobalProcedures.GP_ServerInterfaceThread), line 20&#13;
EIT_DATEHEURE : 06/10/2016 15:17:27&#13;
EIT_TYPE_WDFILE : &lt;7&gt;&#13;
EIT_IDCODE : &lt;458752&gt;</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59846-wd21-problem-with-internal-procedure-threads/read.awp</link><title>[WD21] Problem with Internal Procedure in threads</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
