Open 19Rustam80 opened 8 months ago
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;".
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).