Re: [Harbour] Problem building telepathy test program

2008-12-08 Thread Barry Jackson
I tested telepathy with the original test program and a loopback plug, but it failed, so to check whether it was failing on both send and receive I did the following: I tested the port with a loopback and a small C program from the web in Linux and it works. I have another machine with a Clipper t

Re: [Harbour] Problem building telepathy test program

2008-11-29 Thread Barry Jackson
Hi Przemek, Many thanks - that fixed it, I am getting somewhere now! I have used -n in the past but never realized the effect on code outside the first function. I have never used STATICS myself - I always used PUBLICS and straight structured functional coding! That, I can understand. I do have t

Re: [Harbour] Problem building telepathy test program

2008-11-28 Thread Przemyslaw Czerpak
On Fri, 28 Nov 2008, Barry Jackson wrote: Hi Barry, > More problems. > There is a "THREAD STATIC s_aPorts" declaration before the main procedure > in telepathy.prg and no matter how I build this it always crashes with: > Error BASE/1003 Variable does not exist: S_APORTS. Even if I put altd() >

Re: [Harbour] Problem building telepathy test program

2008-11-28 Thread Barry Jackson
More problems. There is a "THREAD STATIC s_aPorts" declaration before the main procedure in telepathy.prg and no matter how I build this it always crashes with: Error BASE/1003 Variable does not exist: S_APORTS. Even if I put altd() before any other functions in main() it crashes first. I have t

Re: [Harbour] Problem building telepathy test program

2008-11-27 Thread Abeb
I did some modifications & bug fixes to this lib. mainly it checks if there is data in the buffer with the empty() function, which will return true even the is white space data in the buffer. i wish i can upload back my modifications. Barry Jackson wrote: > > What am I doing wrong? I am tryin

Re: [Harbour] Problem building telepathy test program

2008-11-27 Thread Barry Jackson
That's encouraging - my current version of the program that I want to write has been in use for years, but I wrote it using Xbase++ and it runs under Win98. It controls a Digital Video Recorder which is hidden and inaccessible. I am trying to change everything to Linux - hence this exercise. Chee

Re: [Harbour] Problem building telepathy test program

2008-11-27 Thread Maurilio Longo
Barry, it should be enough for such an use, I was able to talk to a fiscal printer sending and receiving packets. I think it's enough to remove that function or, better, use the correct one for harbour. Best regards. Maurilio. Barry Jackson wrote: > Maurilio, > Many thanks for your reply. > OK

Re: [Harbour] Problem building telepathy test program

2008-11-27 Thread Barry Jackson
Maurilio, Many thanks for your reply. OK that's fine- I will work around that function if I need to. The application I want to write will only be required to open a port and send character strings - there is no handshake so it should not be a problem. I just wanted to be sure that I was not the ca

Re: [Harbour] Problem building telepathy test program

2008-11-27 Thread Maurilio Longo
Barry, this is a problem inside hbtpathy which comes from xharbour and uses a function (threadsleep) not available in harbour. So this has to be fixed in hbtpathy. BTW, I wrote it, and it is more of a proof of concept than a finished library that can be used on production systems. Best regards.

[Harbour] Problem building telepathy test program

2008-11-26 Thread Barry Jackson
What am I doing wrong? I am trying to build the telepathy test program. I am using Mandriva Linux 2009.0 and built harbour using mpkg_rpm_from_svn.sh script. The make_gcc.sh ran OK in the hbtpathy dir. and /usr/lib/harbour/libhbtpathy.a exists. Regular "Hello World" programs compile OK and run wit