Am 25.11.2013 15:31 schrieb "Brian" <[email protected]>:
>
> 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
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to