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

关于内存泄漏的检测与防范
引用本文:林丽芬. 关于内存泄漏的检测与防范[J]. 福建教育学院学报, 2007, 8(7): 114-117
作者姓名:林丽芬
作者单位:福建信息职业技术学院,福建,福州,350003
摘    要:动态分配、回收内存是C/C++编程语言一个最强的特点,但是最强的同时也可能是最弱的,在内存处理出错的地方通常就是BUGS产生的地方。一个最敏感和难检测的BUGS就是内存泄漏——没有把前边分配的内存成功释放,一个小的内存泄漏可能不会引起人的注意,但是程序泄漏大块内存,将可能引起复杂的内存耗尽错误。

关 键 词:内存泄漏 动态分配 释放内存
文章编号:1673-9884(2007)07-114-04
修稿时间:2007-04-30

The Detection and Prevention of Memory Leakage
LIN Li-fen. The Detection and Prevention of Memory Leakage[J]. Journal of Fujian Education Institute, 2007, 8(7): 114-117
Authors:LIN Li-fen
Affiliation:Fujian Polytechnic of Information Technology, Fttzhou 350003, China
Abstract:Dynamic allocation and memory retrieve are two of the strong features in the C/C++ program.However while being the two strongest points,they could also be the weakness.Usually where errors are found during the memory treatment,this proves to be where the bugs have appeared.One of the most sensitive and difficult bugs to detect is memory leakage,where the previously allocated memory has not been successfully released.We may not notice a small-sized memory leakage,but for a large-sized memory leakage,it will cause some complicated errors which may lead to the memory exhaustion.
Keywords:memory leakage   dynamic allocation   memory retrieve
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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