Hi,
I'm using Box2D 2.1.2 and I am facing a strange trouble. From one day to another this error appeared : I have an "EXC_BAD_ACCESS" on the line 189 of b2ContactManager.cpp.
It happens at the moment there is a contact between two bodies.
I'm using XCode and a static library I built with CMake. Evrything worked fine until now.
Does anyone of you has an idea ?
Thanks in advance.
Ben
I'm using Box2D 2.1.2 and I am facing a strange trouble. From one day to another this error appeared : I have an "EXC_BAD_ACCESS" on the line 189 of b2ContactManager.cpp.
Code:
if (edge->other == bodyA) <-------------------------- This is the line pointed by XCode
{
b2Fixture* fA = edge->contact->GetFixtureA();
b2Fixture* fB = edge->contact->GetFixtureB();
if (fA == fixtureA && fB == fixtureB)
{
// A contact already exists.
return;
}
if (fA == fixtureB && fB == fixtureA)
{
// A contact already exists.
return;
}
}
{
b2Fixture* fA = edge->contact->GetFixtureA();
b2Fixture* fB = edge->contact->GetFixtureB();
if (fA == fixtureA && fB == fixtureB)
{
// A contact already exists.
return;
}
if (fA == fixtureB && fB == fixtureA)
{
// A contact already exists.
return;
}
}
It happens at the moment there is a contact between two bodies.
I'm using XCode and a static library I built with CMake. Evrything worked fine until now.
Does anyone of you has an idea ?
Thanks in advance.
Ben