[fpc-pascal] Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why
L
L at z505.com
Thu Feb 28 05:07:27 CET 2008
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
> reopen it.
>
http://bugs.freepascal.org/view.php?id=10205
Attached program with problem.
This may be why WriteLn(WsaGetLastError) was causing problems, if
writeln calls a by value parameter too.
More information about the fpc-pascal
mailing list