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

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

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: lpvalente (20 Jul 2014)


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

This page was last modified on 20 July 2014, at 22:11.
27 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.