>> So Harbour tracing fails in MT / OW

>I do not know what is wrong in this build but there is no
>difference between MT and ST mode in such tests. Both should
>create tracelog. I've just tested it and it works. Though
>I've found one problem. Some tracelog message in memvars.c can
>cause GPF. I'll fix it but it does not change the fact that
>it's working as expected and tracelog is created and contains
>many entries before it reach memvars.c.
>So sth has to be wrong in binaries you are creating.

I have not updated Harbour code from SVN trying to not introduce a different behaviour by some recent change

But perhaps is time to use a fresh checkout and recreate tests
I will do that

>BTW have you tried:
>   printf("0. hb_gt_os2_ReadKey()\r\n");fflush(stdout);
>before HB_TRACE() in gtos2.c?

Yes, and same condition: Can not execute
  iKey = HB_GTSELF_READKEY( pGT, INKEY_ALL );
for second thread, and so does not enter hb_gt_os2_ReadKey() and printf("0. hb_gt_os2_ReadKey()\r\n");fflush(stdout); are never reached

>In hb_gt_def_InkeyPollDo():

>   iKey = HB_GTSELF_READKEY( pGT, INKEY_ALL );

>in hb_gt_def_InkeyPollDo() executes low level GT driver READKEY()
>method. In GTOS2 it's hb_gt_os2_ReadKey(). Please also note that
>it works for 1-st thread and fails only for the second one so the
>problem is bound with low level GT code. In GTCGI READKEY() does
>nothing and only returns K_ENTER code:

>   static int hb_gt_cgi_ReadKey( PHB_GT pGT, int iEventMask )
>   {
> HB_TRACE(HB_TR_DEBUG, ("hb_gt_cgi_ReadKey(%p,%d)", pGT, >iEventMask));

>      HB_SYMBOL_UNUSED( pGT );
>      HB_SYMBOL_UNUSED( iEventMask );

>      return 13;
>   }

>In GTOS2 and GTSTD low level keyboard code is activated and it causes
>that application fails.

Based in your explanation, fails trying to execute
  iKey = HB_GTSELF_READKEY( pGT, INKEY_ALL );
   ---> hb_gt_os2_ReadKey()
but never execute it

Second thread can not access this "low level GT driver READKEY() method ( GTOS2:hb_gt_os2_ReadKey() ) ?

David Macias



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

Reply via email to