Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 16, 2014, 8:59:17 PM (11 years ago)
Author:
noep
Message:

Tried to find&solve the segfault. The detach-process itself is not the problem, but the collision on a deleted shape being handled. Maybe try using a smart pointer in the handling process, so that the shape only gets deleted when the process completed?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/modularships/src/orxonox/collisionshapes/CompoundCollisionShape.cc

    r10003 r10033  
    138138        if (this->attachedShapes_.find(shape) != this->attachedShapes_.end())
    139139        {
     140            orxout() << "Still going..." << endl;
    140141            this->attachedShapes_.erase(shape);
    141142            if (shape->getCollisionShape())
    142143                this->compoundShape_->removeChildShape(shape->getCollisionShape()); // TODO: Apparently this is broken?
    143144            shape->notifyDetached();
     145            orxout() << "Still going...." << endl;
    144146
    145147            this->updatePublicShape();
     148            orxout() << "Still going....." << endl;
    146149        }
    147150        else
Note: See TracChangeset for help on using the changeset viewer.