This page was last modified 05:23, 26 September 2007.
KIJ000753 - MIDlet may fail in deallocating the memory reserved for M3G graphics object
From Forum Nokia Wiki
| ID | KIJ000753 | Creation date | September 26, 2007 |
| Platform | S60 3rd Edition, S60 3rd Edition, FP1 | Devices | Reproduced on Nokia N93 (sw version 20.0.058), Nokia N95 (sw version 11.0.026) |
| Category | Java | Subcategory | Mobile 3D Graphics API (JSR-184) |
Overview
MIDlets may fail in deallocating the memory reserved for an M3G graphics object, and the application crashes when allocating too many 3D objects.
Description
Sometimes MIDlets fail in deallocating the memory reserved for an M3G graphics object. Because of this, allocating too many new 3D objects might crash the application. For example, using the Loader.load("filename.m3g") method iteratively can cause the M3G application to crash with (or without) an OutOfMemory error message. When the MIDlet tries to allocate memory from the heap by using memory which should be automatically deallocated but is instead still allocated, the application crashes.
Solution
Reuse the created 3D objects and minimize the amount of loaded objects.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| (midp 1.0) flipper ball beta test | bpj1138 | Mobile Java Games | 5 | 2006-09-12 20:48 |
| Dangerouse memoryleak problem with midlet in 7650/3650. Any Help?? | oswald45 | Mobile Java General | 0 | 2003-07-24 22:47 |
| How to know the "MIDP spec/details" in all Nokia phones ? | akokchai | Mobile Java General | 3 | 2003-05-07 10:40 |
| Sprites problem in S60 solved ! | nyakete | Mobile Java Media (Graphics & Sounds) | 7 | 2003-11-17 17:31 |
| Nokia 6233 Java Out Of Memory Error | naruto_ivan | Mobile Java Games | 7 | 2007-08-22 06:04 |

