I am trying to write a small game with IrrLicht and Box2D, when I try to get the position of a body (b2Body.getPosition) I get an access violation exception. The program is OO, I wrote a class to contain the graphics and pointers to bodies, and another one to to store the world, and a vector of the previous class. Please help me, if you need more information just ask.
Access violation
Build IssuesYes, we do. I suggest showing some code, specifically where the violoation occurs, where you create bodies and where you create the world.
It gets worse 😢 When commenting I found two errors, I fixed them and now I get access violation exception when initializing. These caused the original error too, so I guess the problem is not with Box2D, or my interface, it's somewhere in the other parts of the code.
Original thread: https://box2d.org/forum/viewtopic.php?t=3126