SET BACKGROUND TASKS ON command

SET BACKGROUND TASKS ON command

Postby Enrico Maria Giordano » Mon Apr 01, 2013 4:16 pm

Dear friends, the command

Code: Select all  Expand view
SET BACKGROUND TASKS ON


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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: SET BACKGROUND TASKS ON command

Postby Silvio.Falconi » Mon Apr 01, 2013 7:18 pm

dear Emg what make this ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: SET BACKGROUND TASKS ON command

Postby Enrico Maria Giordano » Mon Apr 01, 2013 8:56 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: SET BACKGROUND TASKS ON command

Postby Silvio.Falconi » Mon Apr 01, 2013 9: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: SET BACKGROUND TASKS ON command

Postby Enrico Maria Giordano » Tue Apr 02, 2013 9:19 am

There are two samples in xharbour\tests:

Code: Select all  Expand view
bkgtest.prg
bkgtst2.prg


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: SET BACKGROUND TASKS ON command

Postby Enrico Maria Giordano » Tue Apr 02, 2013 6:02 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: SET BACKGROUND TASKS ON command

Postby lucasdebeltran » Tue Apr 02, 2013 6: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.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: SET BACKGROUND TASKS ON command

Postby Enrico Maria Giordano » Tue Apr 02, 2013 7: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
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: SET BACKGROUND TASKS ON command

Postby Enrico Maria Giordano » Tue Apr 02, 2013 9:03 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: SET BACKGROUND TASKS ON command

Postby reinaldocrespo » Wed Apr 03, 2013 8: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.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: SET BACKGROUND TASKS ON command

Postby Enrico Maria Giordano » Wed Apr 03, 2013 8:17 pm

Reinaldo,

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 92 guests