FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Timer not running if FW app not in-focus
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Timer not running if FW app not in-focus
Posted: Fri Feb 19, 2010 03:42 AM
Hello all,


I tried class oTimer and
Code (fw): Select all Collapse
nDashTask := HB_BackGroundAdd( {|| uDashUpdate() }, 3000 )
nDashIdle := HB_IdleAdd( {|| HB_BackGroundRun( nDashTask ) } )


On dual-monitor. on the left-side, I modify table via dbu/arc32, on the right-side is the app monitoring changes in 3sec interval...

problem is... if I focus the mouse to the right-side monitor then updates occurs but if mouse/focus remains in right-side... nothing hapens...

Coding problem or what?


Regards,
FAP
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Timer not running if FW app not in-focus
Posted: Fri Feb 19, 2010 08:09 AM
As far as I know, the correct syntax for HB_BackGroundAdd() is

Code (fw): Select all Collapse
nDashTask := HB_BackGroundAdd( { @uDashUpdate() }, 3000 )


or

Code (fw): Select all Collapse
nDashTask := HB_BackGroundAdd( { "uDashUpdate" }, 3000 )


EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Timer not running if FW app not in-focus
Posted: Fri Feb 19, 2010 09:48 AM

Sorry, codeblock syntax is fine too.

EMG

Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: Timer not running if FW app not in-focus
Posted: Sat Feb 20, 2010 01:27 AM

EMG,

Thanks for your reply.

Anyway, end-user has only 1 monitor. But this behavior is noticeable in my setup.

Regards,
FAP

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Timer not running if FW app not in-focus
Posted: Sat Feb 20, 2010 08:48 AM

Sorry, I haven't a dual monitor to reproduce the problem.

EMG

Continue the discussion