How can I control heap allocation for a process using Symbian C++
How can I control heap allocation for a process?
My application fails to allocate memory after reserving a certain amount of memory from heap. What should I do to allocate more memory from heap?
The EPOCHEAPSIZE directive can be set in the .mmp file to reserve or constrict the amount of procurable heap available to the process during start-up and at run time.
epocheapsize minimum maximum
The minimum value (in bytes, rounded to the nearest 4K) ensures that the process does not start/run unless the device has the specified amount of free memory available.
The maximum value limits the amount of heap the process can consume.
For more information, see the following item in the Symbian FAQ database: FAQ-1253