×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Out of Memory Exception in

    Hello,

    I tried to use zoomIn and ZoomOut to make image adjust according to screen size but i got Out of memory exception on emulator even. Can some one tell me what can be the issue in it ? The following is a link for zoomin and out code.

    http://www.java-tips.org/java-me-tip...d-oom-out.html

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Out of Memory Exception in

    How big is the image you are trying to zoom, and what size of image are you trying to create?

    Graham.

  3. #3
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: Out of Memory Exception in

    Quote Originally Posted by grahamhughes View Post
    How big is the image you are trying to zoom, and what size of image are you trying to create?

    Graham.
    The size is 272 kb. its width is 538 and 360. If i am displaying simply then it is displaying but if i call any zoom function then it is giving OutOfMemoryException.

  4. #4
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Out of Memory Exception in

    hey,
    have a look at this :
    http://wiki.forum.nokia.com/index.ph...y_Usage_Images

    Also remember that whislt zooming you will have the memory consumption of the original Image AND of the per-pixel Array you most probably are using AND the memory consumption of the new Image...
    Or am I mentioning too many AND's graham ?

  5. #5
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Out of Memory Exception in

    You can never have too many ANDs, Tiger...

  6. #6
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: Out of Memory Exception in

    Quote Originally Posted by Tiger79 View Post
    hey,
    have a look at this :
    http://wiki.forum.nokia.com/index.ph...y_Usage_Images

    Also remember that whislt zooming you will have the memory consumption of the original Image AND of the per-pixel Array you most probably are using AND the memory consumption of the new Image...
    Or am I mentioning too many AND's graham ?

    So what could be solution ? I just need the application on S60 5th edition which has good memory but yet i am facing problem.

  7. #7
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Out of Memory Exception in

    How big an image are you trying to create?

  8. #8
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: Out of Memory Exception in

    Quote Originally Posted by grahamhughes View Post
    How big an image are you trying to create?
    Its size was 272 KB but when i changed its size to make comfortable with n 96. Its size became some what less 130. Right now only one image but i may need many images one by one. When i am calling zomming it is creating problem.

  9. #9
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Out of Memory Exception in

    I mean, when you're zooming at run-time. How big, in pixels?

Similar Threads

  1. Replies: 3
    Last Post: 2008-01-28, 14:00
  2. Can't run native Symbian apps on memory card after phone restart
    By stewart.hector in forum General Development Questions
    Replies: 5
    Last Post: 2007-05-28, 11:19
  3. Memory dropping constantly. Is this normal?
    By Lucretia9000 in forum Mobile Java General
    Replies: 2
    Last Post: 2004-11-16, 13:35
  4. midlet start-up on 6600: too much memory
    By lbardone in forum Mobile Java General
    Replies: 5
    Last Post: 2004-09-28, 08:40
  5. Some memory related and other issues
    By sanjg2k1 in forum General Development Questions
    Replies: 0
    Last Post: 2003-07-07, 17:38

Posting Permissions

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