首页 | 本学科首页   官方微博 | 高级检索  
     

有效的C 内存泄露检测方法
引用本文:邵叶秦. 有效的C 内存泄露检测方法[J]. 数字社区&智能家居, 2007, 3(14): 455-456
作者姓名:邵叶秦
作者单位:南通大学,现代教育技术中心,江苏,南通,226001
摘    要:提出了一个有效的C 内存泄漏检测方法.方法在分析内存泄漏的基础上,通过重新实现动态内存分配和释放函数,记录内存分配的确切位置并跟踪动态内存的使用情况.在程序结束时,方法利用跟踪结果检测和定位内存泄漏.最后,通过在Windows和Linux平台上的实验验证了本文方法的有效性.

关 键 词:内存泄漏  动态内存  泄漏检测
文章编号:1009-3044(2007)14-30455-02
修稿时间:2007-06-03

Effective Method for Memory leak Detection in C++
SHAO Ye-qin. Effective Method for Memory leak Detection in C++[J]. Digital Community & Smart Home, 2007, 3(14): 455-456
Authors:SHAO Ye-qin
Abstract:The paper presents an effective method for the detection of memory leak.Based on the analysis of memory leak,the method overloads the allocation function and overrides the free function to store the allocation spot and trace the dynamic memory allocation.At the conclusion of the program,the method detects and locates the memory leak depending on the tracing result.Finally,an experiment on the Windows and Linux platforms comes up and proves the effectiveness of the proposed method.
Keywords:memory leak  dynamic memory  leak detection
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号