Types of Memory

There are different types of memory:

Regular Memory
Most programs use regular memory. This is the type provided by the default run-time heap.

Shared Memory
Heaps of shared memory can be shared between processes or applications. If you want other processes to use the heap you have created, you must pass them the heap handle and give them access to the heap.

Tiled Memory
Tiled memory is guaranteed not to cross 64K boundaries (as long as the object being allocated is less than 64K), so it is appropriate for objects that may be accessed by 16-bit code.

Note the following characteristics of tiled memory:

Specify your memory type
Make sure you specify the memory type when you get the initial block for your heap, when you create the heap, and when you add to your heap (with _uaddmem or your getmore_fn function). For example, if you use tiled memory, you need to specify the tiledmemory Code Generation option to ensure your objects are correctly aligned.



Memory Management Functions
Managing Memory with Multiple Heaps


Change the Default Heap


Code Generation Options
Differentiating Between the Memory Management Functions
Tiled Memory Management Functions