On Tue, Apr 18, 2017 at 07:32:21PM +0800, Dennis wrote: > Since this freezing behavour does not happen during debugging, I have spent > months trying to fix it but failed. > > Any suggestions are welcome.
Try using a data race detector to see if it's a deadlock. I don't know about Windows, but I've used the helgrind tool in valgrind to successfully fix thread errors in a lazarus program. If you're lucky, the problem will manifest itself on a platform that valgrind is available on. Henry _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal