Randy: That's better, it compiled and linked OK - thanks. Still not working though.
Marilio: I just got your reply - thanks you are right I missed a "," compared to the testtp.prg in contrib. I have run my test with and without Randy's ReleaseCPU() in the delay loop and still no output using the loopback. The "Recv String=" is outputting the tp_recv return value just before the function returns it. So test is now :- function main tp_open( 1,,,9600, 8, "N", 1 ) do while !LASTKEY()=27 tp_send( 1, CHR(LASTKEY())) tp_delay(0.5) ? tp_recv( 1 ) inkey(0) enddo tp_Close( 1 ) return nil function ThreadSleep ( millisecs ) secs = millisecs/1000 now = seconds() DO WHILE seconds()<now+secs hb_ReleaseCPU() //randy ENDDO return nil Any other thoughts? > > function main > > tp_open( 1,, 9600, 8, "N", 1 ) > > tp_open( port, input-buffer size, output-buffer size, speed... > > so it lacks a comma and as such 9600 is not port speed and all the other > parameters are wrong as > > well. Sorry, the function is called hb_ReleaseCPU() - It is defined in IDLE.C as follows: /* Release a CPU time slice */ HB_FUNC( HB_RELEASECPU ) { hb_releaseCPU(); } -- View this message in context: http://www.nabble.com/Using--contrib-hbtpathy-fuctions-in-Linux-tp21339751p21341309.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour