Re: [Lazarus] GUI multithreaded Win32 program sometimes freeze when quitting

2017-04-18 Thread Bart via Lazarus
On 4/18/17, Dennis via Lazarus wrote: > I noticed that it will happen more often if: > 1) > constructor TMyComponent.Create(TheOwner : TComponent); > begin > > self.some_component := TSomeComponent.Create(TheOwner); > end; A bit OT, but would think that is bad

[Lazarus] GUI multithreaded Win32 program sometimes freeze when quitting

2017-04-18 Thread Dennis via Lazarus
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 :