Changes between Version 28 and Version 29 of Getting-Started/Android


Ignore:
Timestamp:
Feb 5, 2014 11:06:04 AM (6 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/Android

    v28 v29  
    128128 
    129129 
     130== Important Issue(s) when Developing Apps with Pjsua2 API == #issues 
     131 
     132=== Garbage Collector May Crash Your App === #gc 
     133 
     134There are two problems with Java garbage collector (gc): 
     135 - it delays the destruction of Java objects (including pjsua2 objects), causing the code in object's destructor to be executed out of order 
     136 - the gc operation may be run on different thread, not previously registered to PJLIB 
     137 
     138Due to problems above, '''application MUST immediately destroy pjsua2 objects using object's delete() method''', instead of relying on the gc to clean up the object. 
     139 
     140For example, to delete an Account: 
     141 
     142   {{{ 
     143acc.delete(); 
     144   }}} 
     145 
     146 
     147 
    130148== Other Android projects == 
    131149