| Reply | « Previous Thread | Next Thread » |
|
Hello all,
I'm using this simple loading function in my application: public static Image loadImage (String img){ imageName = img; Image image = null; try { image = Image.createImage(img); } catch (java.io.IOException e){} return image; } I'm calling this function in my app loader to load different PNGs. It works without problems on all teste phones but on Nokia 6680 and 6681 I got reports that phone hangs during this loading loop at randomly loaded image. Is this a known issue on the 66xx series? Anyone have experience with simmilar problems on those phones? Any solution? thanks in advance for any feedback. |
|
What is the Exception being thrown? Any specific messages?
Daniel
Last edited by dcrocha : 2006-02-13 at 17:21.
Reason: misspelling
|
|
According to the tester the phone is gouing to freeze and needs to be restarted. So unfortunately no Exception :-/
|
|
Join Date: Aug 2005
Posts: 67
Location: Venice, California
davidmanpearl
Offline
Regular Contributor
|
|
I have had the same problem regarding handset freeze from Image.createImage() with Nokia 6620 and 6682 and have not resolved it.
But, I think you are running out of RAM. When I back off and create fewer and/or smaller images, it works. Furthermore, when I then use getRGB to convert these Images into byte arrays, then I throw a Symbian -4 error, which translates to something like: "no more memory". Runtime.getRuntime().total/freeMemory() do not seem to give me meaningful clues as to how much memory is **really** available or when the handset might freeze. Attempting to deallocate unused memory with Runtime.getRuntime().gc(); has never helped me. Most likely due to the same issues, I have NEVER been able to capture more than 640x480 with vc.getCapture(). |
|
What is strange about this behaviour is that the phone is freezing randomly at different images.
Another strange thing is that 6680/1 device description says that the phones have "Unlimited Heap size". Anyway, thanks for your info I'll try to focus on the memory consumption during the image loading. |
|
I have the same problem.
The images I load are not very big and the app runs well even on 3660. Any ideas? Is it low free memory size problem or not? |
|
In my case, the problem was in the memory consumption although the specs says the phone has 'unlimited heap' ?!? Fortunately I could change the code so it loads only the images which are currently needed by the app.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| 6681 free RAM problems. | anwar79 | General Discussion | 3 | 2006-12-10 06:57 |
| Audio priority on 6630, 6680 and 6681 | bpelt | Symbian Media (Graphics & Sounds) | 2 | 2006-01-19 11:56 |
| 6680 and problems with DirectGraphics | nokia_devil | Mobile Java Media (Graphics & Sounds) | 0 | 2006-01-11 17:13 |
| Nokia 6680 / 6681 Memory Full Easily | easytalk | Mobile Java General | 0 | 2005-10-12 08:45 |
| 6680 Uninstall Problem: Please help: Urgent | arizkohli | General Symbian C++ | 0 | 2005-07-11 15:10 |