Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User juannoguera's Avatar
    Join Date
    Dec 2005
    Location
    Albacete, Spain
    Posts
    380
    I am using CImageDecoder::Convert() to display small JPEG images (many are less than 10K, and they are all 72ppp).

    The app displays a sequence of five images, switching image every 5 seconds.
    The images that generate the KErrNoMemory are always the same, but they do not always give the KErrNoMemory error. Sometimes they display OK, then in the next sequence they give a KErrNoMemory, and they display OK again in the next round.
    These images are not necessarily the largest ones, and none of them is progressive encoded (I already check that issue on Wiki).

    I have tried increasing Stacksize, but this seems to have no effect.

    any recommendation on what to look at?
    ----------------------------------------------
    Every journey starts with a small step.

  2. #2
    Regular Contributor k4l4's Avatar
    Join Date
    Mar 2003
    Posts
    50
    Quote Originally Posted by juannoguera View Post
    I have tried increasing Stacksize, but this seems to have no effect.
    Perhaps try increasing your heap size instead.
    --
    Matti Dahlbom
    http://irssibot.777-team.org/

  3. #3
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Prior to any voodoo, do not forget to think:
    - .jpeg is a compressed format => file size does not matter
    - decoding the JPEG image means that it gets uncompressed => memory requirement is height*width*bytes-per-pixel (it depends on the TDisplayFormat, but it is usally 4)
    Other technical details:
    - the Font and Bitmap Server (FBS - CFbsBitmap) stores images in its own heap, and it is able to
    - stack problems raise KERN-EXEC 3, and not KErrNoMemory
    EPOCHEAPSIZE-EPOCSTACKSIZE does not matter.

    So calculate the uncompressed size of your images, and check the specifications of the given device (I guess you are not talking about the emulator).

Similar Threads

  1. KErrNoMemory while moving files
    By jawadakhtar in forum Symbian C++
    Replies: 1
    Last Post: 2010-03-20, 16:38
  2. Synchronous CImageDecoder fine for files, NOT for descriptors
    By Mete in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2009-05-06, 06:25
  3. CImageDecoder or CFbsBitmap perform padding?
    By NevenS in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2009-03-30, 09:42
  4. KErrNoMemory on Nokia 5700 - Hipermidia ported App
    By vitormcruz in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2007-12-21, 02:06
  5. Converting from SVG to Bitmap using CImageDecoder
    By Tatanka.nbr1 in forum Symbian C++
    Replies: 0
    Last Post: 2006-05-09, 12:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved