log4cplus的内存泄露问题
生活随笔
收集整理的這篇文章主要介紹了
log4cplus的内存泄露问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
今天使用log4cplus在MFC調用時老發現關閉程序出現大面積的內存泄露。真操蛋,控制臺沒問題。
官方有人說是 微軟工具檢測的問題,并非內存泄露。
搜索一老外網頁?http://stackoverflow.com/questions/696321/best-logging-framework-for-native-c
發現一老外的評論
I'm looking also for the same thing. So far I evaluated:
- log4cplus - nice API, easy build, but memory leaks. The author does not care about the memory leaks and they will not be fixed I guess (see here)
- log4cpp - nice API, easy build, but memory leaks
- log4cxx - requires a bunch of apache stuff to get build (really annoyng until you build it) and at the end it has memory leaks... It is also very big
- glog - so far version 0.3.0 - too early. Looks promesing though, but maybe later. It still has memory leaks, but it is small
- ezlogger - cool nice small logging library. The only one without memory leaks! Unfortunately there are no features like configuration files, rolling logs e.t.c. Just logging, but works. It consists of several HPP files, so you just include them in your project. No need to build the whole world in order to work (Apache should learn from that!). The code looks nice, it has superb documentation, so anybody can extend it with whatever features in no time
I still want to look at Boost and the Pantheios, but I think ezlogger will be the tool of choice for me. Did I miss some library here? I'd like to make a complete list if possible.?
?
真操蛋,5個日志庫,4個微軟檢測內存泄露。那應該是微軟的問題。唯一一個ezlogger輕量級的日志組件微軟沒報內存泄露。
試試去。微軟的內存泄露檢測工具太無語了。?
轉載于:https://www.cnblogs.com/kenter/archive/2011/09/05/2167201.html
總結
以上是生活随笔為你收集整理的log4cplus的内存泄露问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: FCKeditor所有版本任意文件上传缺
- 下一篇: C#中new和override区别