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 on the Lazarus ML since it's likely to be a subtlety of the LCL.

My experience is that it pays to be absolutely paranoid during termination regarding the continued availability of anything associated with a form, and also about termination flags themselves particularly the application terminate flag.

Granted that most of my unhappy experience in this area was in Delphi, but like yourself I found the culprit elusive.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to