Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2007, Vol. 33 ›› Issue (04): 40-41. doi: 10.3969/j.issn.1000-3428.2007.04.014

• Software Technology and Database • Previous Articles     Next Articles

Techniques and Tools of Defending Memory-related Defects in Software Coded in C++

CHENG Zhenlin, FANG Jinyun, TANG Zhimin   

  1. (Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100080)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-02-20 Published:2007-02-20

C++编码中减少内存缺陷的方法和工具

程振林,方金云,唐志敏   

  1. (中国科学院计算技术研究所,北京 100080)

Abstract: Most of the defects and errors in the software coded in C++ are memory-related. Based on the practice in the "network, large volume spatial information oriented GIS" project, this paper presents the techniques and tools to find and fix the memory problems during the coding, debugging and production release phase with the support of the C++ language mechanism, development environment and related quality-assurance tools.

Key words: C++, Memory errors, Memory leak, Quality assurance

摘要: 基于C++的软件的缺陷和错误大部分都和内存相关,预防、发现、消除代码中和内存相关的缺陷,成为程序员编写、调试、维护代码时的重要任务。该文基于“面向网络海量空间信息的大型GIS”课题的工程实践,提出和总结了如何使用C++语言机制、开发环境和相关质量保证工具来预防、发现各种编译期、运行期内存缺陷的方法和工具。

关键词: C++, 内存错误, 内存泄漏, 质量保证