@ResidentBiscuit: ¿do you know a compiler that fails on that?
@OP: try to create a minimal setup that does reproduce your issue.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
void PhysicCube::Initialize() //I expect this to be a private function that's called from the constructor
{
setVisible(true);
phyobject = new BoxObject(); // weird
}
BoxObject::BoxObject()
{
std::cout<<"show float!!!!"<<std::endl;
float t = 34;
std::cout<<t<<std::endl;
std::cout<<"crash!!!!"<<std::endl; //consider using a debugger instead
Initialize();
sideLength = glm::vec3(1.0f);
}
Uhmmm...I detect the problem. If I delete the variable dMass from PhysicObject class ( remove other related methods with this), it works. But I don´t know why crash it yet...