Posts by Zhiguo

1) Message boards : RALPH@home bug list : Minirosetta 2.11 (Message 5140)
Posted 19 May 2010 by Zhiguo
Post:
Creating RigidBodyPerturbMover and RigidBodyPerturbNoCenterMover objects on heap causes crashing of the program. It's okay to create as a local or global variable, though. After spending a few days on debugging, I still can't find a clue.


////////////////////////// test.cpp /////////////////////////////////
#include <protocols/moves/RigidBodyMover.hh>

protocols::moves::RigidBodyPerturbMover rbmover1(); // okay

int main()
{
protocols::moves::RigidBodyPerturbMover rbmover2(); // okay

protocols::moves::RigidBodyPerturbMover* rbpt = new protocols::moves::RigidBodyPerturbMover; // okay

delete rbpt; // crash hear!
}

///////////////////////////////////////////////////////////////////////






©2024 University of Washington
http://www.bakerlab.org