Antonio Linares wrote:Enrico,
Could you provide a small self contained example ? thanks
FUNCTION MAIN()
LOCAL hBkg := HB_BACKGROUNDADD( { || Tone( 440, 1 ) }, 10, .F. )
LOCAL hIdl := HB_IDLEADD( { || HB_BackGroundRun( hBkg ) } )
SET BACKGROUND TASKS ON
HB_BACKGROUNDACTIVE( hBkg, .T. )
INKEY( 0 )
SET BACKGROUND TASKS OFF
HB_BACKGROUNDDEL( hBkg )
HB_IDLEDEL( hIdl )
RETURN NIL
#include "FiveWin.ch"
function Main()
local thID := hb_threadStart( @thFunc() )
MsgInfo( "ok" )
return nil
function thFunc()
local n
for n = 1 to 10
Tone( 440, 1 )
next
return nil
#include "FiveWin.ch"
static bAction
function Main()
local thId
bAction = { || Tone( 440, 1 ) }
thId = hb_threadStart( @thFunc() )
MsgInfo( "ok" )
return nil
function thFunc()
local n
for n = 1 to 10
Eval( bAction )
next
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 106 guests