Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

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.

 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX