Search found 47 matches: threading

Searched query: threading

by Jimmy
Wed Mar 15, 2023 1:20 am
Forum: FiveWin for Harbour/xHarbour
Topic: CLASS TGrid() for FiveWin
Replies: 28
Views: 7622

Re: CLASS TGrid() for FiveWin

... on big Screen
you can change it to 32 / 256 and "use Image" in Menu for big Thumbs in "Icon-Mode"

under [CONTROLS] all should be YES

...

if you have Problem with "multi-Threading" use Start-Parameter "/S"

if Start is slow you might have enable "use Image".
disable it
ImageLeft=NO
ImageRight=NO
by Antonio Linares
Mon Feb 27, 2023 9:15 am
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin multi-threading Support ?
Replies: 9
Views: 1125

Re: Fivewin multi-threading Support ?

Dear Jimmy,

Very good

as you want :-)
by Jimmy
Mon Feb 27, 2023 5:41 am
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin multi-threading Support ?
Replies: 9
Views: 1125

Re: Fivewin multi-threading Support ?

... mt in LIB Name)
echo $(HBDIR)\lib\win\bcc\hbvmmt.lib + >> b32.bc
echo $(BCDIR)\lib\cw32mt.lib + >> b32.bc
now you can use "mt LIB" for "multi-threading" support under Fivewin with *.MAK (BCC)

this is my *.MAK for BCC 32 Bit
HBDIR=c:\harbour
BCDIR=c:\BCC7
FWDIR=c:\fwh

#change these paths as ...
by Jimmy
Mon Feb 27, 2023 12:01 am
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin multi-threading Support ?
Replies: 9
Views: 1125

Re: Fivewin multi-threading Support ?

hi,

is nobody using -mt and *.MAK with BCC :?:

is there a "other" Way to use "a List of *.PRG" to compile under 32 Bit OS :?:
by Jimmy
Sun Feb 26, 2023 10:25 am
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin multi-threading Support ?
Replies: 9
Views: 1125

Re: Fivewin multi-threading Support ?

hi,

i have try buildhmt.bat and it seems to be for 32 Bit :?:
Der Befehl "c:\bcc7\bin\bcc32" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
* Linking errors *

btw. c:\fwh64\samples\testmt02.prg
Error in Line 34
uTh5 not define
must be uTh1

---

still not know how to ...
by Jimmy
Sun Feb 26, 2023 10:05 am
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin multi-threading Support ?
Replies: 9
Views: 1125

Re: Fivewin multi-threading Support ?

hi,

how to use
hb_threadDetach( LEN( oSelf:aThread ) ) // close thread handle
hb_threadQuitRequest( LEN( oSelf:aThread ) ) // terminate thread
i have to it on End of Function, which is called by hb_threadStart(), but both fail at that place
"how" to "close" a Thread before RETURN :?:
by Jimmy
Sun Feb 26, 2023 10:02 am
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin multi-threading Support ?
Replies: 9
Views: 1125

Re: Fivewin multi-threading Support ?

hi Antonio,
Please review FWH\samples\buildhmt.bat

FWH works properly using multi thread you can try it using FiveDBU.prg
Ah, i have to use another *.BAT

OK and how with *.MAK which i use under 32 Bit OS :?:
by Antonio Linares
Sun Feb 26, 2023 8:36 am
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin multi-threading Support ?
Replies: 9
Views: 1125

Re: Fivewin multi-threading Support ?

Dear Jimmy,

Please review FWH\samples\buildhmt.bat

FWH works properly using multi thread you can try it using FiveDBU.prg
by Jimmy
Sun Feb 26, 2023 6:59 am
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin multi-threading Support ?
Replies: 9
Views: 1125

Re: Fivewin multi-threading Support ?

Question :

are CLASSS DATA "visible" in Thread, call by hb_threadStart() "in" Method of CLASS, or i do i need to "pass" them as Parameter :?:
can i use @::aSource or @MYaSource (per reference) :?:


#define HB_THREAD_INHERIT_PUBLIC 1
#define HB_THREAD_INHERIT_PRIVATE 2
#define HB_THREAD_INHERIT ...
by Jimmy
Sun Feb 26, 2023 6:55 am
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin multi-threading Support ?
Replies: 9
Views: 1125

Re: Fivewin multi-threading Support ?

... for Sample using hb_threadStart() under Fivewin it seems me that Fivewin User does not know it :?:

as i understand you need enable "multi-threading" support using Option -mt with hbmk2
also mt=yes in *.HBC "should" work ...

---

in *.HBP for MSVC 64 Bit i saw in 1st line
-gui

now i have ...
by Jimmy
Sun Feb 26, 2023 5:00 am
Forum: FiveWin for Harbour/xHarbour
Topic: use hb_threadStart() in a CLASS ?
Replies: 2
Views: 319

Re: use hb_threadStart() in a CLASS ?

hi,

the Problem is not the Syntax. it seems Fivewin is not use -mt default
but as i understand it need "multi-Threading" else Thread does not work

i have search in Fivewin for hb_threadStart()

there is a Sample c:\fwh\samples\testmt02.prg
when press "Test" hb_threadStart() does NOT WORK and show NO ...
by Jimmy
Sat Feb 25, 2023 11:24 am
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin multi-threading Support ?
Replies: 9
Views: 1125

Fivewin multi-threading Support ?

hi,

i have include this on Top of Main
IF !hb_mtvm()
MSGSTOP( "There is no support for multi-threading" )
QUIT
ENDIF
https://i.postimg.cc/fyd1bYMC/Fivewin-Thread.jpg
so how to enable multi-threading support for Fivewin :?:

---

edit : found
hbmk2 test -mt
but how with *.MAK (BCC) or *.HBP ...
by Antonio Linares
Thu Sep 01, 2022 9:04 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FWH WebApp (HTML) testing
Replies: 32
Views: 3963

Re: FWH WebApp (HTML) testing

... Otto,

The migration from xHarbour to Harbour is quite simple and easy to be done.

mod_harbour is based on Harbour as it requires robust multi threading, which it is not available on xHarbour.

Besides that, the hbcplr.lib of Harbour allows you to compile and execute PRGs at runtime, also required ...
by Antonio Linares
Sun May 30, 2021 8:49 am
Forum: mod_harbour
Topic: Installation of mod_harbour as module or fastcgi handler
Replies: 27
Views: 5641

Re: Installation of mod_harbour as module or fastcgi handler

Dear Massimo,

You have nothing to worry about. If it is working fine for you, then its ok

The web is "multi-threading" in the sense that several customers may do a request in the same moment, thus mod_harbour is built using multi-threading mode. You can check it running this: ? hb_mtvm(). You get ...
by Antonio Linares
Fri May 28, 2021 5:04 pm
Forum: mod_harbour
Topic: Installation of mod_harbour as module or fastcgi handler
Replies: 27
Views: 5641

Re: Installation of mod_harbour as module or fastcgi handler

... has its pros and its cons:

* mod_harbour "fastCGI" is very fast but it uses only ONE virtual machine for ALL requests. It is built using "multi-threading"
so it can attend lots of customers but they ALL share the workareas, the public variables, the global symbol table, etc. This
can be very "weak ...