Hi,
The attached program works well under Linux when compiled with Kylix3. It counts from 1 to 10 and ends. FPC compiles it, but doesn't work (loops forever). Seems that CheckSynchronize doesn't work (or perhaps TThread.Synchronize?).
Another issue: CheckSynchronize has in Kylix3 an optional parameter (Timeout: Integer = 0), not available in FPC.
Micha Nelissen took a look at it and said:
Does it work, if you remove the call to sleep, just before CheckSynchronize? Or change it to sleep(1) and observe it prints 1 2 3 4 every second.
Vincent.
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel