×

Discussion Board

Results 1 to 15 of 15

Thread: Heap memory

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    107

    Heap memory

    I made an installer for my swf using the stub. However i observed a strange behavior with regards to heap allocation. By default when I launch the installed app the heap allocated is around 8 MB. But when I play a video flv file streamed from the server, the allocation goes up to 20 MB. In contrast when i launch the standalone swf file the default heap allocation is 20 MB. How can I get the heap allocation for the installed app as 20 MB? I tried setting the value in the stud code, but it doesnt seem to have any difference in heap allocation.

    Regards
    Ramesh

  2. #2
    Regular Contributor
    Join Date
    Feb 2005
    Location
    Karachi, Pakistan
    Posts
    277

    Re: Heap memory

    Hi,

    Try setting the static heap, and dynamic heap memory in MMP file as well, use the same value of dynamic heap for setting up FlashUI.Config for your stub application.

    FYI, FL2.x allows max 8MB and FL3.0 allows 8/16MB and FL3.1 allows 16/32MB. It's different on other OEMs as well.

    Hope if helps,

    // chall3ng3r //
    Faisal Iqbal (skype: chall3ng3r)
    Flash Mobile Specialist | Orison Technologies
    _____________________________________
    blog: F·L·A·S·H·I·S·M
    swf2go: www.swf2go.com

  3. #3
    Regular Contributor
    Join Date
    May 2007
    Location
    Finland
    Posts
    134

    Re: Heap memory

    Quote Originally Posted by ramesh130 View Post
    I tried setting the value in the stud code, but it doesnt seem to have any difference in heap allocation.
    A bug in Flash Lite 3.0 prevents the Flash Viewer API from acknowledging the heap setting in the .mmp file. This is fixed for Flash Lite 3.1.

  4. #4
    Registered User
    Join Date
    Oct 2005
    Posts
    107

    Re: Heap memory

    Quote Originally Posted by Risalmin View Post
    A bug in Flash Lite 3.0 prevents the Flash Viewer API from acknowledging the heap setting in the .mmp file. This is fixed for Flash Lite 3.1.
    Thanks.

    Is there any place where all these bugs/issues are listed. Also can we raise bugs to nokia?

    Ramesh

  5. #5
    Regular Contributor
    Join Date
    May 2007
    Location
    Finland
    Posts
    134

    Re: Heap memory

    Please use the following link for reporting issues:
    http://wiki.forum.nokia.com/index.ph...ical_Solutions

  6. #6
    Registered User
    Join Date
    Jan 2007
    Location
    bucharest
    Posts
    222

    Re: Heap memory

    try make it as an widget application...

    and from widget you can save large data (i've tested more than 128K) - in flash with shared object maximum is 4K or chunks of 4K don't know if there is unlimited number of chunks...

    or if in your app made some socketserver, try embed an main.swf in the app, and from main.swf use open document function(from APIs) to open your app.swf which need the 20Mb (in my 5800 last firmware I got 32Mb )

  7. #7
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: Heap memory

    Hi,

    I only see two options in the MMP file namely - minimum heap size and maximum heap size shown as '0x20000' and '0x1000000' resp, while the dynamic heap memory is '8192'. How can I change static heap, and dynamic heap memory in MMP file?

    Regards,
    Supriya Tenany

  8. #8
    Regular Contributor
    Join Date
    Feb 2005
    Location
    Karachi, Pakistan
    Posts
    277

    Re: Heap memory

    Hi,

    First one is static heap, make it to 4mb. The second one is dynamic heap, set it to 16mb or 32mb as per your requirement. I'd suggest 32mb.

    And do not forget to set same value in FlashConfig parameter as in dynamic heap.

    Best,

    // chall3ng3r //
    Faisal Iqbal (skype: chall3ng3r)
    Flash Mobile Specialist | Orison Technologies
    _____________________________________
    blog: F·L·A·S·H·I·S·M
    swf2go: www.swf2go.com

  9. #9
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: Heap memory

    Hi Challenger,

    Even if flash lite 3.x may support the memory limits as mentioned, not all nokia phones supporting FL 3.x have the dynamic heap memory of that magnitude. I face a problem with 5320 which has a dynamic heap as 2MB...How do I tackle this; will changing the memory limit as suggested be a feasible option on all handsets supporting FL 3.x?

    Regards,
    Supriya Tenany

  10. #10
    Regular Contributor
    Join Date
    Feb 2005
    Location
    Karachi, Pakistan
    Posts
    277

    Re: Heap memory

    Hi,

    Nokia have told me that there's a memory allocation bug in Flash Lite 3.0 on 5th Edition Devices... I assume it's in some 3rd Edition devices as well, because some of my SWF2Go clients have reported memory errors, which cannot be fixed.

    The only alternative is to use the latest FL3.1 via firmware upgrade. There's no other option if you have device with FL 3.0 which has this bug.

    One thing that can help me and others is, if you could get the exact version number of FL installed on this device, device's model, and it's full firmware version with it's date. This way we can atleast mark exactly which FL version and which firmware to avoid.

    For getting FL version, you can use the following small version checker I posted on SWF2Go wiki: http://www.swf2go.com/wiki/Adobe-Fla...n-Checker.ashx

    Best regards,

    // chall3ng3r //
    Faisal Iqbal (skype: chall3ng3r)
    Flash Mobile Specialist | Orison Technologies
    _____________________________________
    blog: F·L·A·S·H·I·S·M
    swf2go: www.swf2go.com

  11. #11
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: Heap memory

    Hi Challenger,
    For now, I am using only the emulator for the 5320, but I face a similar problem on my N79 after playing an flv video for almost 15 min or so.

    I am using FL 3.01, my device is N79. How do I check full firmware version and date?

    Regards,
    Supriya Tenany

  12. #12
    Regular Contributor
    Join Date
    Feb 2005
    Location
    Karachi, Pakistan
    Posts
    277

    Re: Heap memory

    Use the FL version checker from the link in my previous post, the version will be something like "FL 9.x.xxx.x".

    And on the standby screen of your device, type this:

    Code:
    *#0000#
    You will see full details of the firmware on your device.

    // chall3ng3r //
    Faisal Iqbal (skype: chall3ng3r)
    Flash Mobile Specialist | Orison Technologies
    _____________________________________
    blog: F·L·A·S·H·I·S·M
    swf2go: www.swf2go.com

  13. #13
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: Heap memory

    Hi,

    The version checker shows only '0' for both FL version and FL memory.

    Firmware details:

    software version - 32.001
    software version date - 25th oct 2009
    Customer version - 32.001.218.2

    Reagrds,
    Supriya Tenany

  14. #14
    Regular Contributor
    Join Date
    Feb 2005
    Location
    Karachi, Pakistan
    Posts
    277

    Re: Heap memory

    Whops... sorry, I must have uploaded incorrect version there.

    Just uploaded new one, please redownload and try again.

    // chall3ng3r //
    Faisal Iqbal (skype: chall3ng3r)
    Flash Mobile Specialist | Orison Technologies
    _____________________________________
    blog: F·L·A·S·H·I·S·M
    swf2go: www.swf2go.com

  15. #15
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: Heap memory

    FL 8,1,55,0

    FL Mem:
    Free: 7905KB
    Total: 8446 KB

    Regards,
    Supriya Tenany

Similar Threads

  1. Memory Full Error for heap descriptor (HBufC8)
    By keerthi.ck06 in forum Symbian
    Replies: 5
    Last Post: 2009-11-04, 12:25
  2. Excessive midlet memory consumption
    By paulip in forum Mobile Java General
    Replies: 1
    Last Post: 2007-10-09, 19:24
  3. Memory Heap & OS Heap
    By earamsey in forum Mobile Java General
    Replies: 0
    Last Post: 2007-08-27, 23:02
  4. Increasing Memory Heap
    By jatal in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2006-10-21, 00:49
  5. Heap memory
    By Vyts in forum Mobile Java General
    Replies: 1
    Last Post: 2004-01-18, 11:52

Posting Permissions

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