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.


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to