[fpc-pascal] SOLVED : Re: GetAffinity\SetAffinity

Sven Barth pascaldragon at googlemail.com
Mon Nov 25 19:21:47 CET 2013


Am 25.11.2013 15:31 schrieb "Brian" <vmst at golden.net>:
>
> Problem solved ... ironically the solution was from a Windows guy.
>
> Faulty Code
>
...
> Corrected Code : InitCriticalSection() BEFORE BeginThread()
>

Ah yes. Always keep in mind that the thread could already be happily
running (or in extreme cases even finished) when BeginThread (or in
extension TThread.Create(False)) returns.

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


More information about the fpc-pascal mailing list