Revision as of 08:38, 28 November 2012 by hamishwillee (Talk | contribs)

How can I control heap allocation for a process using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search

How can I control heap allocation for a process?

Article Metadata
Platform(s): S60 3rd Edition
S60 3rd Edition (initial release)
Created: User:Technical writer 2 (07 Jul 2006)
Last edited: hamishwillee (28 Nov 2012)


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

69 page views in the last 30 days.