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