Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2008

    how to allocate long size memory?

    i know User::AllocZ(TInt aSize),it only allocate TInt size memory

    how to allocate long int size memory?

  2. #2
    Regular Contributor
    Join Date
    Apr 2008

    Re: how to allocate long size memory?

    Actually, if you take a look at docs on AllocZ, it says:
    (raises panic) USER 47, if the maximum unsigned value of aSize is greater than or equal to KMaxTInt/2. For example, calling Alloc(-1) raises this panic.
    But do you have a device with more than KMaxTInt/2 (KMaxTInt is 0x7fffffff) amount of RAM (free, after system has been booted)?

  3. #3
    Regular Contributor
    Join Date
    Jan 2004
    Braunschweig, Germany

    Re: how to allocate long size memory?

    As default the available memory for one program is limited to 1 MByte regardless of the available memory in the phone. This can be changed by adjusting the epocheapsize in the project mmp file.

    TInt is defined as a 32 bit Integer in Symbian, so it will be sufficient for one or two more years for specifying the size of a allocated block of memory ;-) before phones will be available with more than 2 GBytes of RAM memory.


Similar Threads

  1. How can I get the total memory size?
    By eyalmnm in forum Mobile Java General
    Replies: 1
    Last Post: 2007-01-11, 15:28
  2. Replies: 6
    Last Post: 2006-09-22, 19:37
  3. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  4. Memory size for Java on Nokia12
    By flyerge in forum Nokia M2M
    Replies: 1
    Last Post: 2004-02-15, 10:36
  5. jvm to allocate more memory
    By hychiu in forum PersonalJava
    Replies: 0
    Last Post: 2003-04-22, 21:54

Posting Permissions

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