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

Writer Destructor Not Clearing #850

Open
pjy03 opened this issue Feb 28, 2024 · 0 comments
Open

Writer Destructor Not Clearing #850

pjy03 opened this issue Feb 28, 2024 · 0 comments

Comments

@pjy03
Copy link

pjy03 commented Feb 28, 2024

I am using the library in an environment of an DLL. I have a function that helps me to configure the loggers during DLL_PROCESS_ATTACH. And also an extra function to configure the logger when the upper layer of the system pass in some arguments. The system works fine when the upper layer calls the extra function. However, when the upper layer did not call that upper function something will happen.

The memory of the system will pile up. The call stack will be full of the ~Writer() destructor which appears to have run to its last line (DefaultLogDispatchCallback->dispatch() Note : I did not use dispatch) for destruction but wont get rid of it at all. This also results in my log file having tons of my first log message . In what scenarios, does this happen ?

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

1 participant