Closed wslj2016 closed 2 years ago
I just tried it under ubuntu, and the files generated by release and debug have no memory leaks.
while(true) { LBP_QtLog::Instance()->logger()->debug(QStringLiteral("TestPolling")); LBP_QtLog::Instance()->logger()->debug(QStringLiteral("TestPolling")); }
anyone help
How did you notice this ? TaskManager? I tried to reproduce this on Windows in Release Mode (also in Debug). And I can not notice any memory increase over the time. I modified the basis example so that it does continuous logging.
Do you have more information under which conditions this happens?
Thank you for your repay,I just notice that with TaskManager. I also tried the version of the official website(https://sourceforge.net/projects/log4qt/files/),which also has this phenomenon(memory leak only in the release mode of windows OS).
Sorry I don't see this here an Windows and release mode, even if the modified basic example does continuous logging over some hours. I don't see were a memory leak in log4qt should happen.
We use log4qt in several projects on windows and we never have notice an significant memory increase over time.
I close this issue because I can not reproduce this.
We use log4qt in several projects on windows and we never have notice an significant memory increase over time.
i have the same probloems,The more debug or error log info taked ,the more memory will be occupied in windows. i have the examples used by qt project, you can try int
The released project occupies more memory with the increase of logs,and not released. The more debug or error log info taked ,the more memory will be occupied, but there is no phenomenon in the debug version.