×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Oct 2005
    Posts
    54

    Memory Management in the application

    Hi ,

    I have created an application .It has sound , images , data storage etc..which has made its size quite large.Now when i am running this application on the Mobile Handset ,initially it runs fine but after some time the application get slowed up.. n finally it hangs.

    Can you please help me how can i do the memory managenment in the application so that it runs fine.

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

    Re: Memory Management in the application

    IMHO there are some points to be checked in your code.

    * Proper handling of Threads.
    * Closing of RecordStore after using it.
    * Minimise the heap memory used.
    * Set the objects to null after using it(For eg: Image objects).

    Regards
    Gopal

  3. #3
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Memory Management in the application

    Hi divyas,

    In addition to what Gopal advised, i'd like to share the resource below with you, it has a lot of tips regarding perfomance issues.

    J2ME performance tips

    http://www.javaperformancetuning.com/tips/j2me.shtml

    Hope it helps!

    BR,

    Juarez Junior

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

    Re: Memory Management in the application

    Hi Juarez!

    Thankz for sharing the link, Seems quite interesting! Have added this link to my week end TO READ items list! :-)

    Regards
    Gopal

  5. #5
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Memory Management in the application

    Hi Gopal, friend

    Always my pleasure to interact with all of you by means of these boards. Glad you liked the resource

    BR,

    Juarez Junior

  6. #6
    Regular Contributor
    Join Date
    Oct 2005
    Posts
    54

    Re: Memory Management in the application

    Thanks guys,

    Great help from u all...
    Thanks Gopal for sharing a great link ..

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

    Re: Memory Management in the application

    Glad that we were of some help!
    BTW, the link courtesy goes to Juarez

    Regards
    Gopal

Similar Threads

  1. Replies: 2
    Last Post: 2006-04-27, 18:58
  2. Application skips many times when I click the application
    By bb_sathya in forum Mobile Java General
    Replies: 0
    Last Post: 2005-12-20, 04:49
  3. Heap memory management as the app developer
    By yoalat in forum Symbian
    Replies: 0
    Last Post: 2004-08-10, 23:52
  4. Replies: 1
    Last Post: 2002-05-14, 14:15
  5. 9210 and 9210i java memory
    By allams in forum Mobile Java General
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

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