Re: [fpc-pascal] GUI multithreaded Win32 program sometimes freeze when quitting

2017-04-18 Thread Henry Vermaak
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

Re: [fpc-pascal] GUI multithreaded Win32 program sometimes freeze when quitting

2017-04-18 Thread Mark Morgan Lloyd
On 18/04/17 12:00, Dennis wrote: I have an win32 multithreaded program written in lazarus 1.7, FPC 3.1.1 From time to time, when it quits, it will freezes and from the task manager, the program will occupies the entire CPU core. I noticed that it will happen more often if: This might be better

[fpc-pascal] GUI multithreaded Win32 program sometimes freeze when quitting

2017-04-18 Thread Dennis
I have an win32 multithreaded program written in lazarus 1.7, FPC 3.1.1 From time to time, when it quits, it will freezes and from the task manager, the program will occupies the entire CPU core. I noticed that it will happen more often if: 1) constructor TMyComponent.Create(TheOwner :