[ANN] Heap Memory Manager and Garbage Collector
От: SchweinDeBurg Россия http://zarezky.spb.ru/
Дата: 17.04.08 05:20
Heap Memory Manager and Garbage Collector

This article demonstrates a method to try and solve a common problem hated by most C++ programers; Memory leaks and memory overruns. The method used in this article is to track all memory allocated by the program. It also has basic protection checks whether the memory written to the allocated block has overrun the number of bytes actually allocated.

This method also lets you organize and group allocated memory by ID or by name. Giving a name to a memory allocation gives the advantage that you can get the memory allocated by name while not needing to keep a pointer running around. Giving a group ID to an allocation helps the programer to keep memory allocations grouped and thus can call a single function to deallocate all memory if a certain group.

[ posted via RSDN@Home 1.1.4 stable SR1 r568, accompanied by silence ]
- Искренне ваш, Поросенок Пафнутий ~ ICQ#116846877
In Windows, there’s always a catch… © Paul DiLascia
Подождите ...
Пока на собственное сообщение не было ответов, его можно удалить.