Avoid a memory leak when grouping Persistent objects

by BlackBerry Development Advisor ‎02-12-2010 02:32 PM - edited ‎09-16-2010 03:13 PM (1,444 Views)

Summary

 

This article applies to the following:

  • BlackBerry® Device Software 4.6 and later

Details

 

With BlackBerry Device Software 4.6 and later, it is possible to create a memory leak when grouping Persistent objects, or Persistent data that has been committed to the Persistent Store previously.Because it is possible for commitments to the PersistentStore to occur during garbage collection, without an explicit call to commit(), grouping of objects should always occur before calls to setContents() or commit().