Skip to content

Latest commit

 

History

History
65 lines (53 loc) · 2.21 KB

File metadata and controls

65 lines (53 loc) · 2.21 KB
title Memory Management | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
memory
MFC, memory management
memory allocation
memory, managing
memory allocation, MFC
ms.assetid 934ac81b-d630-4232-88e5-ea74f7187987
caps.latest.revision 10
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Memory Management

This group of articles describes how to take advantage of the general-purpose services of the Microsoft Foundation Class Library (MFC) related to memory management. Memory allocation can be divided into two main categories: frame allocations and heap allocations.

One main difference between the two allocation techniques is that with frame allocation you typically work with the actual memory block itself, while with heap allocation you are always given a pointer to the memory block. Another major difference between the two schemes is that frame objects are automatically deleted, while heap objects must be explicitly deleted by the programmer.

For non-MFC information about memory management in programs for Windows, see Memory Management in the Windows SDK.

What do you want to know more about

See Also

Concepts
General MFC Topics