How can I control heap allocation for a process using Symbian C++
How can I control heap allocation for a process?
Article Metadata
Compatibility
Platform(s): S60 3rd Edition
Article
Created: User:Technical writer 2
(07 Jul 2006)
Last edited: hamishwillee
(28 Nov 2012)
Description
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.
Syntax:
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


(no comments yet)