On Sun, 09 Nov 2008, David Arturo Macias Corona wrote: Hi David,
> 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 It will resolve possible GPF during MT tracing but it will have no effect on creating trace.log. If it was not created in your builds then it means that sth is wrong. Maybe you used different libraries which were compiler without C_USR flag or test application was not recompiled. > >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 It's very strange. What is the whole output? Can you send it here? > >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() ) ? What is very strange and should not happen. I'd rather expect that there is sth wrong with tests we are making. Can you add: printf("0. hb_gt_cgi_ReadKey()\r\n");fflush(stdout); are never reached to GTCGI hb_gt_cgi_ReadKey() function and send the ouput for test program linked with GTCGI together with GTOS2? best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour