[fpc-pascal] Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-02-27 Thread L
L wrote: Aha.. I changed the by Value parameter to a CONST parameter in the error procedure (Perror).. And this solves the issue.. So something to do with calling by Value within a thread versus a const (pointer?). I will attach the problem in the bug report previously opened if I can reope

[fpc-pascal] Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-02-27 Thread L
L wrote: Luca wrote: I don't think that synapse is to blame[*]: my test program is also using the sockets unit directly, and stores SocketError (which just calls WSAGetLastError) in a variable. Found the problem using my brute force writeln('') skills. It is an issue with freepascal's stac

[fpc-pascal] Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-02-27 Thread L
Luca wrote: I don't think that synapse is to blame[*]: my test program is also using the sockets unit directly, and stores SocketError (which just calls WSAGetLastError) in a variable. Found the problem using my brute force writeln('') skills. It is an issue with freepascal's stack or somet

Re: [fpc-pascal] WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-02-27 Thread Luca Olivetti
En/na Marco van de Voort ha escrit: Hello, before reporting a bug, I'm asking for support here since I'm not sure I doing something wrong (and if so what am I doing wrong). I can't test easily atm, but trying killing off socketerror and the older calls without fp. Try also to move the "write (

Re: [fpc-pascal] WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-02-27 Thread Marco van de Voort
> Hello, before reporting a bug, I'm asking for support here since I'm not > sure I doing something wrong (and if so what am I doing wrong). I can't test easily atm, but trying killing off socketerror and the older calls without fp. Try also to move the "write (thread created)" after the sleep.

Re: [fpc-pascal] Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-02-27 Thread Luca Olivetti
El Wed, 27 Feb 2008 12:04:22 -0700 L <[EMAIL PROTECTED]> escribió: > > While using synapse in a thread, I saw that it didn't report an > > error > on connection, > > eventually I saw that the call to WSAGetLastError was returning 0 > even if it couldn't > > connect and the connect call retur

[fpc-pascal] Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-02-27 Thread L
> While using synapse in a thread, I saw that it didn't report an error on connection, > eventually I saw that the call to WSAGetLastError was returning 0 even if it couldn't > connect and the connect call returned an error. I am also working on this issue still. I had the WSAGetLastError work

[fpc-pascal] WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-02-27 Thread Luca Olivetti
Hello, before reporting a bug, I'm asking for support here since I'm not sure I doing something wrong (and if so what am I doing wrong). While using synapse in a thread, I saw that it didn't report an error on connection, eventually I saw that the call to WSAGetLastError was returning 0 even i