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


Sign in to follow this  


To my great joy, I found out that my computer supports DirectX9, while the last computer I used only supported DX8.

Sadly, the joy ended once I started to work on Stompy again. You see, Stompy has a tendency to crash whenever anything that resembles a new feature is added. Case and point, yesterday, I tried to add a new enemy to the game. I added all the new enemy code and the new image data, just like I did with the two other enemies. The game immedietly crashed when I tried to play it. I ran Dev-C++'s debugger to see what the problem was. It said that an access violation had taken place. The compiler then pointed to this line of code:


This is the function that handles the timer for explosions. After an hour of debugging, and trying to find what exactly was wrong, I deleted the new enemy code.

Defeated, I went and watched Law&Order, and didn't work on it for the rest of the night. Or did I (dun, dun, DUN)...?
Sign in to follow this  


Recommended Comments

If you're like me at all, going off and doing something completely unrelated is many times the best way to solve a problem that you're banging your head on. Good luck on solving the bug!

Just an FYI: If I saw an access violation on a line of code like that, I'd strongly suspect that either i was out of bounds of the array, or the array hadn't been allocated yet. I'm sure you probably have gone down those thought paths already, but just in case, I figure I'll toss them out =)

Share this comment

Link to comment
I thought that too, givin the fact that I had just recently changed the max amount of elements in the explosion array. Sadly, this was not the cause. The wierd thing is that this error only happens when I attempt to add new resources to the game.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!