Engine Problems

Published June 18, 2005
Advertisement
It seems that my engine has some problems clearing out dead objects. Particularly dead projectile weapons. I've created an Asteroids type game using the engine, but it crashes after about 5 minutes of play or so. Because the game is simpler, it's easier to locate where the problem is.
0 likes 2 comments

Comments

choffstein
Smart pointers, home boy ;)
I think Dungeon Siege had an issue with this sort of thing, except it was with pointers back to an object which died. Example, an arrow hosted its owner's pointer to give exp if it hit. However, what if the owner dies while its in the air? The owner gets deleted and the arrow now points to unusable memory. Crashx0r.

I hate those kinds of bugs. They really require a huge amount of forethought and good design.
June 18, 2005 10:15 PM
Battagline
Yeah... It's a pain in the arse. I thought my resource manager had a good handle on the problem, but apparently not as good as I had hoped.
June 18, 2005 10:44 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement