Show
Ignore:
Timestamp:
02/12/08 09:51:59 (9 months ago)
Author:
cneumann
Message:

fixed: - pointer fields: sync/copyFromBin order of inc/dec refcount

(always inc new pointer first, then dec old pointer)

  • cluster server: commented out writing of .osg file on each frame
  • multi display window: merged fix from trunk (r1058)
  • tutorial 12: empty address check

added: - pointer field handles: implemented equal and share

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Fields/OSGSWeakFCPointerField.inl

    r1041 r1060  
    271271SWeakFCPointerField<ObjectT, NamespaceI>::copyFromBin(BinaryDataHandler &pMem) 
    272272{ 
    273     SFieldTraits::copyFromBin(pMem, this->_fieldValue); 
    274      
    275     incRefCount(this->_fieldValue); 
     273    ValueType newVal; 
     274     
     275    SFieldTraits::copyFromBin(pMem, newVal); 
     276     
     277    incRefCount(newVal           ); 
     278    decRefCount(this->_fieldValue); 
     279     
     280    this->editRawValue() = newVal; 
    276281} 
    277282