×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2007
    Location
    India
    Posts
    197

    large amount of memory

    Hello,

    I want to allocate a very large amount of memory to my buffer.(HBufC)

    If I am allocating it from phone memory, it would be possible that the memory may not be available as sufficient.

    Is it possible to allocate memory from card instead?
    If yes how? is there anything to be done from my side?

    If I install my application to card in place of phone than, will the memory assigned from card?

    Thanks,
    Digish

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: large amount of memory

    Allocating Memory will consume Heap Memory. You are confusing between Heap memory and File Memory HDD.

  3. #3
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: large amount of memory

    yes, as said, the memory will be from heap.
    it is something like this:
    we have user data area (c drive) and memory card. These are the places where we can keep files.

    when ever a program runs, it runs in RAM (generally the D: drive in the phone...) so any heap memory allocated comes from this.

    Also every application has a default minimum and maximum heap memory allocated.
    you can change and increase these values (only if needed) by specifying the following lines in mmp file:
    Code:
    EPOCSTACKSIZE 	  0x10000               // 64 kb
    EPOCHEAPSIZE 	  0x200000 0x300000     // 2 - 3 MB - to be on safer side
    edit: the values given here are just indicative, you can use the values which suit you more, also note : if you use some very high value, then the application may fail to load also as that may cross the upper limit, which is phone dependent !
    Amit Kankani
    Nokia Developer Champion

  4. #4
    Registered User
    Join Date
    May 2007
    Location
    India
    Posts
    197

    Re: large amount of memory

    yes but what i think is heap memory is allocated from phone memory not HDD.

    so how can I get heap memory from HDD?

  5. #5
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: large amount of memory

    you basically cannot !

    again: heap is not allocated from phone memory (i mean drive C.

    Every device has a dedicated RAM (Random access memory) from which the heap allocations are done. It is not from basic phone memory and nor from memory card....
    Amit Kankani
    Nokia Developer Champion

  6. #6
    Registered User
    Join Date
    May 2007
    Location
    India
    Posts
    197

    Re: large amount of memory

    thanks I got it!

Similar Threads

  1. Using Camera API requires too much memory
    By tote_b5 in forum Symbian Media (Closed)
    Replies: 18
    Last Post: 2008-07-31, 16:21
  2. Excessive midlet memory consumption
    By paulip in forum Mobile Java General
    Replies: 1
    Last Post: 2007-10-09, 19:24
  3. Large polymorphic DLLs and memory usage
    By ralph.spada in forum Symbian
    Replies: 3
    Last Post: 2007-08-18, 18:42
  4. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29
  5. 9210 and 9210i java memory
    By allams in forum Mobile Java General
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

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