Unhandled Exception
well the iterator stuff just makes a container to hold all the characters and objects within the game. Every frame it runs through all the objects and updates them. This is where "engine" keeps losing its pointer for some reason
Make sure you aren't exceeding the amount of allocated objects there are, and make sure the memory for the objects is allocated accordingly.
[color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif]
entity.GetSprite().SetPosition(entity.GetX(), entity.GetY());
Is this correct? Seems odd.
so i cleaned that part up a little bit but it still doesnt work. The error is still coming up at "engine -> window -> Draw();"
Well then it has to be the draw function. Take a look. Or perhaps it has to be the getsprite function
No its not that...it has to do something with the "engine" instantiation. It's perfectly fine before it enters the entity manager. Then when it's in it the value goes to 0x0000000
You should place a data breakpoint on the relevant pointer, so that you can see when it is modified during debugging.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement