摘要
通过分析Win32虚拟存储机制和C++中类对象分配机制,设计并实现了基于MFC的两种类型的内存垃圾收集器类及类模板:一种面向Win32的虚拟内存操作;另一种面向动态类对象分配的操作。应用此类可有效地防止内存泄漏现象的发生。
In this paper on an analysis of the virtual memory mechanism in Win32 and the dynamic allocation mechanism of C++ class object, an automatic memory collection method is described. The method is designed on MFC and of two types. One is oriented toward virtual memory operation and the other toward dynamic allocation class object. By using these classes, one can prevent memory leaks effectively.
出处
《中国民航学院学报》
2001年第1期43-46,共4页
Journal of Civil Aviation University of China