×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    33

    Several Images & OutofMemoryError

    Hello,
    Im developing a small game where the user goes through different screens and each one has its own background image.
    Images are not quite large but the number of screens are, so Im facing the problem of running out of memory.
    Ive read many threads about it and my question is which is the best way of free the memory used by one of my screens once its not been used? Just setting all the Image objects in the class to null and calling the garbage collector?

    I know that calling the garbage collector repeatedly its not a good solution, but in my case it would be whenever the user changes from one screen to another. Would it be a good solution in that case?

    Thank you very much

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Several Images & OutofMemoryError

    Check the forum: Developer Discussion Boards > Symbian C++ and Open C > Media (Graphics & Sounds). Garbage collection and Image class suggest Mobile Java to me.

Similar Threads

  1. Retrieving Images from WebCam... how?
    By DancingWave in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2006-04-10, 09:08
  2. oading too big images in a multithreaded setting - safe or not?
    By uttumuttu in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-08-06, 15:27
  3. Help with creating Images..Pls
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-03-02, 01:58
  4. images..
    By zac123 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2004-07-19, 03:01
  5. Problem with PNG Images
    By cyphre666 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2003-12-12, 18:20

Posting Permissions

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