×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    22

    Question [moved] Per-app Symbian^3 Nokia N8 memory use limit -- how to adjust it?

    Hi,

    I'm using Qt Creator to build an application that runs on Nokia N8. In the simulator, it works all right. The application loads two files whose size is 13MB each into two global QStringList objects. However, on the phone I get the error "Memory full".

    The Nokia phone reports that the amount of free RAM is 200 MB. So it should be perfectly possible to load 26 MB of data into RAM, shouldn't it? Is there a per-process limit on how much RAM a process can consume? Is there a way to increase that limit?

    I'm using the new operator to create the list objects in constructors, so they shouldn't be on the stack.

    Thank you.

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Per-app Symbian^3 Nokia N8 memory use limit -- how to adjust it?

    Yes, there is a limit and it is defined in your project file as the 2nd value of TARGET.EPOCHEAPSIZE. The value is hexadecimal and defines the upper limit of your application's heap, in bytes.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: [moved] Per-app Symbian^3 Nokia N8 memory use limit -- how to adjust it?

    I'm using the new operator to create the list objects in constructors, so they shouldn't be on the stack.
    No, stuff created with "new" comes from the heap. A very basic C/C++ concept you had better understand.

  4. #4
    Registered User
    Join Date
    Nov 2010
    Posts
    22

    Re: [moved] Per-app Symbian^3 Nokia N8 memory use limit -- how to adjust it?

    Quote Originally Posted by danhicksbyron View Post
    No, stuff created with "new" comes from the heap. A very basic C/C++ concept you had better understand.
    new = malloc()

  5. #5
    Registered User
    Join Date
    Nov 2010
    Posts
    22

    Re: Per-app Symbian^3 Nokia N8 memory use limit -- how to adjust it?

    Quote Originally Posted by ltomuta View Post
    Yes, there is a limit and it is defined in your project file as the 2nd value of TARGET.EPOCHEAPSIZE. The value is hexadecimal and defines the upper limit of your application's heap, in bytes.
    Thanks, will try that!

Similar Threads

  1. [moved] Request: Barebones OpenGL Game-Ready Sample/Template for N8 (and Symbian^3)
    By PoVRAZOR in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 6
    Last Post: 2011-01-10, 14:42
  2. [moved] N8 Symbian 3 - what to install
    By dichterDichter in forum [Archived] Qt SDKs and Tools
    Replies: 3
    Last Post: 2010-10-16, 21:45
  3. [Moved] What is Time limit for Symbian C++ Open Sign Sis file?
    By dharam.machra in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 3
    Last Post: 2010-06-29, 12:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×