×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    9

    Nokia 7210: Unable to run (ANY) application

    I understand that "Unable to run application" is a way to say "No more heap memory available" for N7210 phone. But I have i MIDlet that starts, runs and finishes ok few times, but then it starts to state "Unable to run.." in startup, and EVERY java MIDlet I have installed, including very simple ones, refuses to start since then. With the same error message, untill I restart the phone. Then everything is all right for some time.
    What kind of error have I done, that affects the application after I restart it and even all other java MIDlets?
    Software version:
    Nokia 7210
    V 3.09
    02-10-02
    NHL-4
    (c) NMP

    Thanks in advance,
    Dan

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    Sounds like a classic case of memory leaking.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    9
    Memory leaking after closing an application?

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    9

    A workaround

    Just for the record: I was a bit overusing DirectGrahics.drawImage(). I replaced most of the occurences by Graphics.drawImage() and it works now. Don't ask me why

  5. #5
    Registered User
    Join Date
    Sep 2003
    Posts
    28

    stupid question

    just a stupid question, but how can memory leaking happen in Java??
    I thought all null objects would be collected by the GC when quit?
    Or is it then just all non-null objects that would leak it?
    but I mean if you quit with the endcall button there is no way you can catch that?

  6. #6
    Regular Contributor
    Join Date
    Jun 2003
    Location
    Hungary
    Posts
    414
    just a stupid question, but how can memory leaking happen in Java??
    Eg.: simple JVM bug.

  7. #7
    Registered User
    Join Date
    Sep 2003
    Posts
    28

    sigh

    I am experiencing the same problem, but couldnt find anything that might still cause it:

    * I am dereferencing everything in destroyApp()
    * I dont use any DirectGraphics.drawImage() calls
    but I use some drawPixels() calls, together with one mutable image. I read that transparent mutable images could cause memory leaks, so replaced transparency with colorkeys..
    * I null EVERY single thing that exists on earth

    and still when I play a few levels, quit the game and try to restart it again, then I get "unable to run application" again..

    It makes me mad!

    The game itself NEVER crashes!
    The only thing that comes to my mind is that I enumerate all maps, i.e. load ALL maps, store their description texts and release em again for mapselection, works fine for my memory, like I said the game wouldnt crash, just when you restart the game : (

    Any ideas?

    Marius

Posting Permissions

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