摘要: 调不尽的内存泄露,用不完的Valgrind(一个介绍程序调试的精彩讲解:http://www.ibm.com/developerworks/cn/linux/l-pow-debug/) Valgrind 介绍 Valgrind是一个GPL的软件,用于Linux(For x86, amd64 and ppc32)程序的内存调试和代码剖析。你可以在它的环境中运行你的程序来监视内存的使用情况,比如C 语... 阅读全文
posted @ 2011-06-25 23:22 Mingxx 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 在多线程的程序里,往往很容易的使用TerminateThread函数。这个函数的功能是结束一个工作的线程在MSDN中REMARKS是这样说的: TerminateThread is used to cause a thread to exit. When this occurs, the target thread has no chance to execute any user-mode c... 阅读全文
posted @ 2011-06-25 01:10 Mingxx 阅读(1818) 评论(0) 推荐(0) 编辑