×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    9

    Nokia 6233 Java Out Of Memory Error

    I have some applications in .jar format. However, when I start some of the applications, an application error message appears. When I click details, it said "java/lang/outofmemoryerror". I've heard something about increasing heap size, and stuff. But problem is, HOW DO I DO THAT??? How can I increase the heap size such that the error doesn't come out? Please someone help me! Thanks a lot :)

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Nokia 6233 Java Out Of Memory Error

    You cannot tell the system to increase the heap memory available for the MIDlet on the devices. Unfortunately the MIDlet in question is too memory intensive for your phone so you cannot run it on the device (you might try removing some other applications from the phone and test if that makes any difference, but I doubt)

    Hartti

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    9

    Re: Nokia 6233 Java Out Of Memory Error

    Nope.. removing other applications doesn't help..
    I've heard forums mentioning that i could increase the heap memory, (since the max internal memory is 6mb for 6233), by editing some data in the file.

    Something about .mmp files,

    I've seen
    for(int i=0;i<70;i++)
    {
    (m_cCircQ[i].m_sElePtr) = HBufC8::NewL(16000);
    }

    But i don't even know where can i find these, how to edit =(
    This memory problem keeps popping out with a lot of applications. There were even "null pointer" errors.. and many :(

  4. #4
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Nokia 6233 Java Out Of Memory Error

    Quote Originally Posted by naruto_ivan View Post
    Nope.. removing other applications doesn't help..
    I've heard forums mentioning that i could increase the heap memory, (since the max internal memory is 6mb for 6233), by editing some data in the file.

    Something about .mmp files,

    I've seen
    for(int i=0;i<70;i++)
    {
    (m_cCircQ[i].m_sElePtr) = HBufC8::NewL(16000);
    }

    But i don't even know where can i find these, how to edit =(
    This memory problem keeps popping out with a lot of applications. There were even "null pointer" errors.. and many :(
    I guess the code you have posted is of Symbian C++, please note that Nokia 6233 is a Series 40 3rd Edition, Feature Pack 1 phone and you cannot run Symbian C++ apps in this phone

    Regards
    Gopal

  5. #5
    Registered User
    Join Date
    Jul 2007
    Posts
    9

    Re: Nokia 6233 Java Out Of Memory Error

    What I'm trying to say is, how do i access/edit those files (mmp) in s40? I need to change the heapmem size..

  6. #6
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Nokia 6233 Java Out Of Memory Error

    AFAIK, there is no mmp file in S40/Java, that you can access and modify.

    Regards
    Gopal

  7. #7
    Registered User
    Join Date
    Jul 2007
    Posts
    9

    Re: Nokia 6233 Java Out Of Memory Error

    I see.. So there is absolutely no way I can solve the memory error problem? could it be possible that the next update for 6233 would have the heapmem increased?

  8. #8
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Nokia 6233 Java Out Of Memory Error

    In case you have missed, please do check for some memory leaks. Use garbage collector where ever necessory. [System.gc()]

    Also give a try with optimising your code.
    Efficient MIDP Programming v1.1
    http://www.forum.nokia.com/info/sw.n..._1_en.pdf.html

    How can I reduce the memory footprint of my J2ME application
    http://www.java-tips.org/java-me-tip...-applic-3.html

    Avoiding Memory Fragmentation
    http://developer.sonyericsson.com/si...ryfragment.jsp

    May be of some help to you.

    Regards
    Gopal

Similar Threads

  1. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  2. error LNK2001: Please Help
    By sourish_khan in forum Symbian
    Replies: 9
    Last Post: 2006-04-19, 11:16
  3. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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