ChinaUnix.net
相关文章推荐:

memwatch

我写了个程序,进行内存测试, 发现如果我把存在内存泄露函数放在同一个.C文件里进行编译时, 是可以检测到的, 但是如果我把这个函数放到别的文件(.H 或.C文件里), 采用包含该文件的形式进行编译测试时,就检测不到. 大家看看这是怎么回事呢? [ 本帖最后由 incle 于 2007-9-14 16:21 编辑 ]

by incle - C/C++ - 2011-06-09 17:18:56 阅读(8210) 回复(19)

相关讨论

Using文件里面提到了说: === As of version 2.66, there is rudimentary support for threads, if you happen to be using Win32 or if you have pthreads. Define WIN32 or MW_PTHREADS to signify this fact. This will cause a global mutex to be created, and memwatch will lock it when accessing the global memory chain, but it's still far from certified threadsafe. === 但是没有更细致的说明会有什么问题,或者说...

by kert_t8 - C/C++ - 2006-10-18 12:05:58 阅读(1738) 回复(0)