摘要: 基于C++的软件的缺陷和错误大部分都和内存相关,预防、发现、消除代码中和内存相关的缺陷,成为程序员编写、调试、维护代码时的重要任务。该文基于“面向网络海量空间信息的大型GIS”课题的工程实践,提出和总结了如何使用C++语言机制、开发环境和相关质量保证工具来预防、发现各种编译期、运行期内存缺陷的方法和工具。
关键词:
C++,
内存错误,
内存泄漏,
质量保证
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++编码中减少内存缺陷的方法和工具[J]. 计算机工程, 2007, 33(04): 40-41.
CHENG Zhenlin; FANG Jinyun; TANG Zhimin. Techniques and Tools of Defending Memory-related Defects in Software Coded in C++[J]. Computer Engineering, 2007, 33(04): 40-41.