Logprovider restart does not seem to work properly
19Rustam80 opened this issue · 1 comments
19Rustam80 commented
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).
MezzaC commented
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;".