Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Engine Problems

Sign in to follow this  


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.
Sign in to follow this  


Recommended Comments

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.

Share this comment

Link to comment
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.

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!