×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    14

    Question Memory overflow error while loading .jpg images on nokia 6300

    Hi, I'm just a beginner in J2ME.
    My problem is when I load .png images , everything goes ok... but when I load .jpg images I do get OutOfMemory error. Even though the size of .jpg file is less as compared to that of .png file.

    Please help me out....

  2. #2
    Regular Contributor
    Join Date
    Oct 2007
    Location
    Pune
    Posts
    189

    Re: Memory overflow error while loading .jpg images on nokia 6300

    Hello,

    What is resolution size of jpg?

    You should use low resolution of image.

    Nokia 6300 has 2 MB max heap size and you might be having other copy of image/data which goes out of memory error.

    Use System.gc() before loading an image.
    Regards,
    Dinanath


    It's a matter of attitude.

Similar Threads

  1. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18: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
  •  
×