×
Namespaces

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition (initial release)
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

This page was last modified on 28 November 2012, at 08:38.
30 page views in the last 30 days.
×