hErrConnectionLoss is not available for windows.
I stop hibernation/sleep of my NAS.
But the use computer running compiled application may be in sleep mode anytime and that may also cause disruption of connection to server HFSQL and thus may raise error.
My application is showing following error after such instance on the user computer:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
An error occurred while running the assisted security mechanism of HFSQL:
No value was returned by <WIN_Connection_Error>.
Call stack:
Left button double click (WM_LBUTTONDBLCLK) on Table_approvals (IW_planning_approvals.IW_planning_approvals.Table_approvals), line 13
Date: 13/04/2023 14:17:20
Project: Planner_HFSQL_2022 (1.2.0.0)
Additional information:
Error code: 70303
Module: 'wd250hf.dll (01A250083n - 25.0.217.0)
Debugging information:
Fonction (7,56)
EIT_TYPE_WDFILE : <8>
EIT_IDCODE : <66051>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-
Bonjour tout le monde ! Veillez consulter la Politique de forum pour comprendre nos règles, Merci a vous !Rejeter la notice
Frequent disconnction from HFSQL server after a long inactivity
Discussion dans 'Base de donnés & HFSQL' créé par sanyad, Avr 4, 2023.
I'm afraid you don't know how to read correctly, this constant is not available for Universal Windows 10 App (Windows logo in blue color), it is indeed available for Windows (Windows logo red, green, blue and yellow)
sanyad apprécie ceci.
Thanks I start using
"Timer(recon,2000)" during project initialization code.
Recon is a procedure in which i used HReadFirst command to connect with a small datafile having 2 records
I call Recon procedute every 20 sec to avoid disconnection of HFSQL.
on project initialization
HOnError("*", hErrConnectionLoss, "OnErrConnectionLoss")
------------------------------------------------------------------
//------- Procedure to call for errors connection
PROCÉDURE OnErrConnectionLoss()
....
sanyad apprécie ceci.