Hi guys,
I am having a weird problem and I can't seem to figure out why it's happening and how I am going to fix it.
I am coding in C++ with Box2D in CodeBlocks with the GNC GCC Compiler.
Whenever I use a for loop in my game, it crashes when I try and use a mouseJoint. With a little bit of investigation I narrowed down the problem to whenever I call SetTarget().
The setTarget isn't inside the for loop, in fact as far as I can see, the for loop and the SetTarget don't have anything to do with each other. When I try and drag something using a mouseJoint, the game freezes and eventually closes, telling me:
I am stumped on this one, anyone have any ideas?
Thanks.
I am having a weird problem and I can't seem to figure out why it's happening and how I am going to fix it.
I am coding in C++ with Box2D in CodeBlocks with the GNC GCC Compiler.
Whenever I use a for loop in my game, it crashes when I try and use a mouseJoint. With a little bit of investigation I narrowed down the problem to whenever I call SetTarget().
The setTarget isn't inside the for loop, in fact as far as I can see, the for loop and the SetTarget don't have anything to do with each other. When I try and drag something using a mouseJoint, the game freezes and eventually closes, telling me:
Code:
Process returned -1073741819 (0xC0000005)
I am stumped on this one, anyone have any ideas?
Thanks.