FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour sleep function
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
sleep function
Posted: Fri May 26, 2023 08:04 AM

Hi all I wonder if the sleep function could block a program.

I talk about a program that is active on a server without human's interactivity with an active Timer with a 60" polling.

This polling launches a function (FUNCTION POLLING() that performs a lot of things and sometimes I introduce some waits using sleep function for one minutes.

Does exist an alternative to sleep function?

Is it possible to active a second timer?

When the function polling is in execution I perform a oTimer:deactivate()

obviously at the end before RETURN here is a oTimer:activate()

Many thanks

Marco Boschi
info@marcoboschi.it
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: sleep function
Posted: Fri May 26, 2023 08:34 AM

Dear Marco,

Use SysRefresh() or SysWait( nValue )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: sleep function
Posted: Fri May 26, 2023 11:11 AM
8)
Marco Boschi
info@marcoboschi.it

Continue the discussion