Jump to content
  • Advertisement
Sign in to follow this  
Mizipzor

Wierd unhandled exception error

This topic is 4827 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im coding a quakelike console, Ive got two fonts, one 8x8 pix and one 16x16 pixel. I use this function for getting which size im using whenever I render text: int GetCharSize() {return CharSize;}; The variable CharSize is a private int and in the constructor I set it to 0, just in case. But, whenever I call that function I get an unhandled exception error, and I really dont know why, I thought you only got those when accessing outside array boundries. What could be wrong?

Share this post


Link to post
Share on other sites
Advertisement
It sounds like the pointer to the object is corrupt; either null or otherwise bad. You may have a buffer overrun somewhere trashing your pointers, are accessing a deleted object, or not properly creating the object in the first place.

Share this post


Link to post
Share on other sites
A pointer was corrupt, checked all the pointers in the class and found the filthy one. Just needed to ask cause I didnt know what else could cause it 'cept out of range array access... but when I think of it... arrays are pointers :P hehe thanks anyways guys! :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!