Sign in to follow this  
Mizipzor

Wierd unhandled exception error

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

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

Sign in to follow this