notifyDeleted and Jitter objects ..


    May 25 2012 | 11:00 pm
    I instantiate objects from Java. ok
    when I delete the mxj, all OB3D stuff is still visible, but moveable etc... only the reference with the Java code is broken
    In JS, it is different.
    So I guess I have to do something in notifyDeleted. All my objects are stored in a basic array.
    How can I delete each object, then clear the memory taken by my array ? garbage collector should do that no?

    • May 25 2012 | 11:11 pm
      Ok. freePeer() did the trick.
      public void notifyDeleted(){ for(int i = 0 ; i < OBJECT_COUNT ; i++){ myObjectsArray[i].freePeer(); finalize(); } }
      I guess it is also the way to cleanly remove a jitter object at runtime
    • May 28 2012 | 2:43 pm
      looking for to do that in JS.. to safely clean the stuff