×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Location
    USA, FL
    Posts
    148

    Usage of System.gc() - not a question but tip :)

    Just has found a memory problem in my game during loading data. All of a sudden after adding a new file to load, I've got this error: "Unable to run application". After some experiments I found that System.gs() can fix this problem!
    Conclusion: use System.gc() after loading data and do not wait when system will actually release memory.

    Dima
    Game Artists, LLC

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    33
    Dima,

    This is a result of the lack of a compacting garbage collector in the Nokia JVM's. See the following threads for a more detailed explanation of when exactly System.gc() can help:

    http://discussion.forum.nokia.com/fo...2Asystem.gc%2A

    http://discussion.forum.nokia.com/fo...2Asystem.gc%2A

    Regards,
    -- Niek

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Location
    USA, FL
    Posts
    148
    Thankx, Niek!

    It seems to me like a proof of what your were saying in
    http://discussion.forum.nokia.com/fo...2Asystem.gc%2A

    System.gc() can really help!

    Dima
    Game Artists, LLC

Posting Permissions

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