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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值