![]() |
Home |
|
Program VMemDemoVMemDemo demonstrates the use of memory mapped files to implement a heap in virtual memory. The program checks how much memory is installed and will then allocate about four times as much as a temporary memory mapped file. This C++/Object Pascal program uses two classes (class VirtualMemory and its derived class VirtualHeap) to encapsulate the low-level Win32 file mapping API calls. Source file VMem.hpp is extensively commented. This program requires RTFiles-32 to compile and link successfully.
|