PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD21] Problem with Internal Procedure in threads
[WD21] Problem with Internal Procedure in threads
Iniciado por guest, 07,oct. 2016 02:36 - No hay respuesta
Publicado el 07,octubre 2016 - 02:36
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

HWrite(PlayerStatus,1)

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.

06/10/2016 15:17:28:36 Program Restarted - Error Condition - GP_Error - Error Description Follows
WL call:
Process of 'Internal procedure IP_WriteStatus' (GlobalProcedures.GP_ServerInterfaceThread), line 40, thread 0
'HWrite' function, syntax 2

What happened?
The data source is not initialized.
- If it is a data file, the file was not found in the analysis or it was not described by HDeclare/HDeclareExternal.
- If it is a query or a view, the execution may have failed.
To retrieve the corresponding error, check the result of HExecuteQuery/HExecuteSQLQuery/HCreateView.

Error code: 70018
Level: fatal error
WD55 error code: 18

Dump of the error of 'wd210hf.dll' module (21.0.124.0).
Identifier of detailed information (.err): 70116
Debugging information:
IEWDHF=1.20
Module=
Version=<21.0.124.0>
Fonction (7,3)
Additional Information:
EIT_PATHWDD :
EIT_LOGICALTABLENAME :
EIT_PILEWL :
Internal procedure IP_WriteStatus (GlobalProcedures.GP_ServerInterfaceThread), line 40
Global Procedure GP_ServerInterfaceThread (GlobalProcedures.GP_ServerInterfaceThread), line 20
EIT_DATEHEURE : 06/10/2016 15:17:27
EIT_TYPE_WDFILE : <7>
EIT_IDCODE : <458752>