The maximum total heap size can be set in the initialisation file
epoc.ini
. This allows developers to emulate target machines with
different memory capacities. The process is:
Open epoc.ini
in a text editor. It can be found at
epoc32\data\
.
Enter the keyword MegabytesOfFreeMemory
, followed by
the number of free MB of memory in the heap. For example:
MegabytesOfFreeMemory <megabytes-of-free-memory>
Save the file.
If the parameter is not specified, the amount of free memory defaults to 64MB.
If you wish to limit the heap, it is conventional to allow one megabyte for Symbian OS system use: for example, specify 7 to simulate a 8MB machine.