Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Writer Destructor Not Clearing #850

@pjy03

Description

@pjy03

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions