Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logprovider restart does not seem to work properly #110

Open
19Rustam80 opened this issue Feb 1, 2024 · 1 comment
Open

Logprovider restart does not seem to work properly #110

19Rustam80 opened this issue Feb 1, 2024 · 1 comment

Comments

@19Rustam80
Copy link

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 19Rustam80 changed the title Logprovider restart seem not to work properly Logprovider restart does not seem to work properly Feb 1, 2024
@MezzaC
Copy link

MezzaC commented Feb 18, 2024

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;".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants