On Sun, 09 Nov 2008, David Arturo Macias Corona wrote:

Hi David,

> Results included in message were redirected to saleos2.txt, salecgi.txt, 
> salestd.txt
> In screen or redirected are same
> Entire results are below
> It work correctly using hb_gt_cgi_ReadKey() as hb_gt_os2_ReadKey()
> I insist, it seem to fail trying to execute hb_gt_os2_ReadKey(), or maybe 
> is executed but screen is not refreshed with tracing labels on it
> I was catching and error DISAPPEAR applying in hb_gt_os2_ReadKey():
>    /*   KbdCharIn( s_key, IO_NOWAIT, ( HKBD ) * s_hk ); */
> As you said, fail reading keyboard input except thread 1  :-)

we will have to find why it happens. Maybe Maurilio can help.

> ... and screen/output is not updated ?

??? I do not understand. Do you want to say that only 1-st thread can
display data on the screen?

> But in hb_gt_std_ReadKey() does not exist KbdCharIn() and fail
> May be due platform/compilers cases  ?
> #elif defined( __WATCOMC__ )
>    if( pGTSTD->fStdinConsole )
>       if( kbhit() )
>          ch = getch();

Probably kbhit() internally call KbdCharIn() and it's exactly
the same problem.

If possible then I would like to check if other GTOS2 functions works
correctly for 2-nd thread and the problem is only with KbdCharIn().
F.e. try mttest02.prg with such modified GTOS2 so we can see if screen
output works.

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

Reply via email to