On Tue, 23 Sep 2008, Maurilio Longo wrote:
> Hi Przemyslaw,
> is hbrun mt ready? I was trying to use it to run mt\mttestxx but I get errors,
> sometimes, like this:
> (E:\repository\harbour-svn\tests\mt)\harbour\bin\hbrun mttest01.prg
> Harbour 1.1.0dev (Rev. 9479)
> Error BASE/3012  Argument error: HB_THREADJOIN
> Called from HB_THREADJOIN(0)
> Called from MAIN(25)
> Called from HB_HRBRUN(0)
> Called from _APPMAIN(109)

HBRUN is linked with hbmt not hbmtvm in standard GNU builds so it does
not have support to MT. HB_STARTTHREAD() does not create new thread and
returns NIL instead of thread pointer. It causes that later HB_THREADJOIN
reports argument error. So the above is expected and correct.

> Other tests, like 02, 03 seem to work.

I do not think so. They only do not reprort errors when linked with
ST HVM but second thread is not started.

> PS.I was using hbrun because there is ready way to run tests inside tests\ dir
> (on OS/2 at least).

If you need hbrun in MT mode then please change in its Makefile
hbvm to hbvmmt in two places and relink it. I'll look later for a way
to build it in MT mode by default for platforms which supports MT.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to