Re: [Harbour] hbinet issue under Windows and Mac OS X ( Linux works )

2008-08-04 Thread Lorenzo Fiorini
On Mon, Aug 4, 2008 at 7:22 PM, Przemyslaw Czerpak <[EMAIL PROTECTED]> wrote: > It means that HB_InetServer() failed. > Please add this code: > ... > and you will see the error code and description > and maybe you will be able to answer why it fails. Oops, sorry it says: Error InetServer

Re: [Harbour] hbinet issue under Windows and Mac OS X ( Linux works )

2008-08-04 Thread Przemyslaw Czerpak
On Mon, 04 Aug 2008, Lorenzo Fiorini wrote: Hi Lorenzo, > Here it is the bt: > Program received signal EXC_BAD_ACCESS, Could not access memory. > Reason: KERN_INVALID_ADDRESS at address: 0xd26c > 0x00054fbc in hb_selectReadSocket (Socket=0x30fb18) at ../../hbinet.c:239 > 239FD_SET(Soc

Re: [Harbour] hbinet issue under Windows and Mac OS X ( Linux works )

2008-08-04 Thread Lorenzo Fiorini
On Mon, Aug 4, 2008 at 6:24 PM, Przemyslaw Czerpak <[EMAIL PROTECTED]> wrote: > Please rebuild Harbour with -g option (f.e. set it in C_USR) and then try > to build tt75s with -nostrip hbmk parameter. It should enable all debug > information so we can see callstack in GDB and locate where the prog

Re: [Harbour] hbinet issue under Windows and Mac OS X ( Linux works )

2008-08-04 Thread Przemyslaw Czerpak
On Mon, 04 Aug 2008, Lorenzo Fiorini wrote: > Under Mac OS X now I get a segfault in HB_InetAccept as soon as I run tt75s: > -- > DO WHILE lRunning > ? "here1" > nSocket := HB_InetAccept( nServerSock ) > ? "here2" > - > I see here1 but not here2. > Program received signal

Re: [Harbour] hbinet issue under Windows and Mac OS X ( Linux works )

2008-08-04 Thread Lorenzo Fiorini
On Mon, Aug 4, 2008 at 5:14 PM, Przemyslaw Czerpak <[EMAIL PROTECTED]> wrote: > For the windows version you should probably add to client code: > HB_InetInit() > which is missing. Many thanks, now win works as expected. Under Mac OS X now I get a segfault in HB_InetAccept as soon as I run tt75

Re: [Harbour] hbinet issue under Windows and Mac OS X ( Linux works )

2008-08-04 Thread Przemyslaw Czerpak
On Mon, 04 Aug 2008, Lorenzo Fiorini wrote: Hi Lorenzo, > Is there anybody that can find sth wrong in the code below? > To build and test it: > hbmk -n static -gtcgi tt75s > hbmk -n static -gtcgi tt75c > ./tt75s.exe 6 & ( or any other unused port number ) > then > ./tt75c.exe localhost 6

[Harbour] hbinet issue under Windows and Mac OS X ( Linux works )

2008-08-04 Thread Lorenzo Fiorini
Is there anybody that can find sth wrong in the code below? To build and test it: hbmk -n static -gtcgi tt75s hbmk -n static -gtcgi tt75c ./tt75s.exe 6 & ( or any other unused port number ) then ./tt75c.exe localhost 6 tt75s.exe it should print "Socket got contacted" and quit. This h