[fpc-pascal] SocketError
Marco van de Voort
marcov at stack.nl
Mon Jul 7 15:45:56 CEST 2008
[ Charset ISO-8859-1 unsupported, converting... ]
> > Ask your OS vendor. These are OS errors.
> > But:
> > 11 is iirc EAGAIN, which means "try again", which is due to a potential
> > deadlock in the kernel not being handled properly.
>
> You say that SocketErrors are OS errors but some influence the FPC
> compiler must have.
You don't happen to fall for the trap where you use syscalls (e.g. a write)
before you query the error ?
Try to rework you code as follows
if fpxxxx<>0 then
begin
aninteger:=fpgeterrno;
writeln(aninteger);
end;
and not
writeln(fpgeterrno); // the write prologue might destroy the contents.
More information about the fpc-pascal
mailing list