QuickLogger icon indicating copy to clipboard operation
QuickLogger copied to clipboard

Logprovider restart does not seem to work properly

Open 19Rustam80 opened this issue 1 year ago • 1 comments

When failstorestart is reached, then TLogProviderBase.Restart is called from IncAndCheckErrors method and tries to terminate fThreadLog thread in Stop method. But IncAndCheckErrors is called from TThreadLog.Execute method resulting in deadlock( because fThreadLog.WaitFor is being called from the same thread).

19Rustam80 avatar Feb 01 '24 07:02 19Rustam80

I also have the same blocking error, after the failure to write a log using the provider the thread remains blocked in Stopping.

if not fThreadLog.Terminated then begin fThreadLog.Terminate; fThreadLog.WaitFor; end;

and crashes at "fThreadLog.WaitFor;".

MezzaC avatar Feb 18 '24 16:02 MezzaC