[fpc-pascal] Re: GetAffinity\SetAffinity

Sven Barth pascaldragon at googlemail.com
Fri Nov 22 19:35:08 CET 2013


Am 22.11.2013 19:17 schrieb "Jeppe Græsdal Johansen" <jeppe at j-software.dk>:
> Your code is broken.
>
> You are using the console output from two threads simultaneously without
proper locking. That's most likely what's causing the crash.

(Disclaimer: I haven't looked at the code, so I'm just assuming that he's
using Write(ln))
Console I/O shouldn't be the problem as each thread has its own Output
variable (it's a threadvar in FPC unlike Delphi).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131122/01c207db/attachment.html>


More information about the fpc-pascal mailing list