QuickLogger
QuickLogger copied to clipboard
Logprovider restart does not seem to work properly
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).
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;".