ecos
26-05-2006 09:02:05
Hi everyone,
I'm using VS C++ 8.0 Express Edition and i have this piece of code in my project:
I build the project without errors, but when it is executed in program it throws an error.
It seems like this error comes out when pointer on float is passed from NewtonBodyGetCentreOfMass that error must be generated by writing to a wrong address or something similiar...
I searched the forum for some hints and nobody is complaining about same thing. Maybe they just more experienced Smile ...
Can someone help me ?
I'm using VS C++ 8.0 Express Edition and i have this piece of code in my project:
Ogre::Vector3 com = mCar->bod->getCenterOfMass();
I build the project without errors, but when it is executed in program it throws an error.
Unhandled exception at 0x007d7f1c in test1.exe: 0xC0000005: Access violation reading location 0x00000000.
It seems like this error comes out when pointer on float is passed from NewtonBodyGetCentreOfMass that error must be generated by writing to a wrong address or something similiar...
Ogre::Vector3 Body::getCenterOfMass() const
{
Ogre::Vector3 ret;
NewtonBodyGetCentreOfMass( m_body, &ret.x );
return ret;
}
I searched the forum for some hints and nobody is complaining about same thing. Maybe they just more experienced Smile ...
Can someone help me ?