FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SET BACKGROUND TASKS ON command
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
SET BACKGROUND TASKS ON command
Posted: Mon Apr 01, 2013 04:16 PM
Dear friends, the command

Code (fw): Select all Collapse
SET BACKGROUND TASKS ON


is compiled by xHarbour but not by Harbour. Any solutions/alternatives?

EMG
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: SET BACKGROUND TASKS ON command
Posted: Mon Apr 01, 2013 07:18 PM

dear Emg what make this ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: SET BACKGROUND TASKS ON command
Posted: Mon Apr 01, 2013 08:56 PM

It activates the background tasks that you can assign using HB_BACKGROUNDADD() and related functions.

EMG

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: SET BACKGROUND TASKS ON command
Posted: Mon Apr 01, 2013 09:38 PM

is there some sample of it ? or can you make a test sample to try ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: SET BACKGROUND TASKS ON command
Posted: Tue Apr 02, 2013 09:19 AM
There are two samples in xharbour\tests:

Code (fw): Select all Collapse
bkgtest.prg
bkgtst2.prg


EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: SET BACKGROUND TASKS ON command
Posted: Tue Apr 02, 2013 06:02 PM

Any suggestions? It seems that Harbour does not implement background tasks. :-(

EMG

Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: SET BACKGROUND TASKS ON command
Posted: Tue Apr 02, 2013 06:55 PM

Enrico,

Did you posted the message on Harbour Developers´s list?.

Maybe you can also use a timer.

Best regards.

Muchas gracias. Many thanks.



Un saludo, Best regards,



Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]



Implementando MSVC 2010, FWH64 y ADO.



Abandonando uso xHarbour y SQLRDD.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: SET BACKGROUND TASKS ON command
Posted: Tue Apr 02, 2013 07:51 PM
Lucas,

lucasdebeltran wrote:Enrico,

Did you posted the message on Harbour Developers´s list?.


No.

lucasdebeltran wrote:Maybe you can also use a timer.


Last time I tried using a timer I found it not as effective as background tasks. I will possibly try it again...

Thank you!

EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: SET BACKGROUND TASKS ON command
Posted: Tue Apr 02, 2013 09:03 PM

Tried. Unfortunately, as I remembered, the timer doesn't work if there is a loop without a SysRefresh() inside it. :-(

EMG

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Re: SET BACKGROUND TASKS ON command
Posted: Wed Apr 03, 2013 08:02 PM

EMG;

I confirm that a timer is not the same as background function. As I understand it, xharbour implements background processing in lack having better support for mt. Harbour on the other hand, seems to support mt quite well, thus you could simply submit a job to 2nd thread thus redering a better result than running a background job.

Reinaldo.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: SET BACKGROUND TASKS ON command
Posted: Wed Apr 03, 2013 08:17 PM

Reinaldo,

I don't want to have multithread applications, at least for the moment.

EMG

Continue the discussion