hi,
i do want to use Thread which are call a Function.
i use Thread to "fill" Imagelist of Object and all in Function use Object ... except FOR ii
Question : will ii be "manipulate" by 2nd Thread when called twice
Function addSale( oCustomer, nNewSale )
oCustomer:TotalSales := oCustomer:TotalSales: + nNewSale
Return nil
oCustomer:AddSale( nSale )
? oCustomer:TotalSales
FOR ii := 1 TO nMax
cFilename := TRIM( ::aSource[ ii ] [ F_NAME ] )
hb_threadStart(@::MyMethod)
hb_threadStart(@oSelf:MyMethod)
hb_threadStart(@&MyMethod)
bMethod := { || ::ImageThread() }
::hThread := hb_threadStart( HB_BITOR( HB_THREAD_INHERIT_PUBLIC, HB_THREAD_MEMVARS_COPY ), @bMethod )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 82 guests