ILE C/C++ Programmer's Guide


Managing Run-Time Storage

ILE allows you to manage run-time storage directly from your program, by managing heaps. A heap is an area of storage used for allocations of dynamic storage. The amount of dynamic storage required by an application depends on the data being processed by the programs and procedures that use the heap. You manage heaps by using ILE bindable APIs.

You are not required to manage run-time storage explicitly. However, you may wish to do so if you want to make use of dynamically allocated storage. For example, if you do not know exactly how big an array should be, you could acquire the actual storage for the array at run time, once your program determines how big the array should be.

There are two types of heaps available on the system:

You can use one or more user-created heaps to isolate the dynamic storage required by some programs and procedures within an activation group.

The rest of this section explains how to use a default heap to manage run-time storage in a program.


[ Top of Page | Previous Page | Next Page | Table of Contents ]