FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper FW using processortime
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
FW using processortime
Posted: Tue Jan 30, 2007 05:02 PM

Hello,

How can I prevent that the next loop is using 100% processortime ?

This is the loop :


DO WHILE .T.
IF VActive
SYSREFRESH()
LOOP
ENDIF
EXIT
ENDDO


Thanks a lot in advance.

Michel D.
M&A Consult bvba
Genk (Belgium)

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
FW using processortime
Posted: Tue Jan 30, 2007 05:07 PM

Michel,

Try Sleep( 1 ) instead of Sysrefresh()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
FW using processortime
Posted: Wed Jan 31, 2007 05:01 PM

Couldn't you use a timer?
Regards
Otto

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
FW using processortime
Posted: Wed Jan 31, 2007 11:01 PM

Antonio,
Otto,

Thanks a lot for you answers.

Antonio, sleep() is an unknown function in FW for Clipper.

Otto, I never thought of a timer. I'll try it out.

Thank you.

Michel

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
FW using processortime
Posted: Thu Feb 01, 2007 08:03 AM
This is a working sample of Sleep() definition:

#include "Fivewin.ch"


FUNCTION MAIN()

    SLEEP( 2000 )

    RETURN NIL


DLL32 FUNCTION SLEEP( nMilliseconds AS DWORD ) AS VOID;
      PASCAL FROM "Sleep" LIB "kernel32.dll"


EMG
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
FW using processortime
Posted: Fri Feb 09, 2007 11:45 PM

Thanks a lot guys.

I'll try out your suggestions.

Michel

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
FW using processortime
Posted: Sat Feb 10, 2007 07:00 AM

Michel,

What do you use that loop for ?

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion