- Joined
- Jun 27, 2004
- Messages
- 4,210
- Trophies
- 0
- Age
- 37
- Location
- England
- Website
- zeldapower.com
- XP
- 653
- Country
Hey all, had this issue for a little while now and I can't seem to fix it. Basically, in a class called Level, I have a get method which returns a particular pointer in a pointer array (the particular pointer is defined by a number that's passed when the method is called). I have another pointer array in another class called Game, and I use a for loop to replicate the pointer array in the Level Class (by using the accessor method).
Now, the problem I'm having is that when I try to call upon the update method on one of the pointers (it's a pointer to a class) a run time error appears saying there is an unhandled exception coming from the pointer array in the game class. I check to see if the pointer isn't null first, and it's passing that check, so assumably there's a pointer there.
Any ideas?
Now, the problem I'm having is that when I try to call upon the update method on one of the pointers (it's a pointer to a class) a run time error appears saying there is an unhandled exception coming from the pointer array in the game class. I check to see if the pointer isn't null first, and it's passing that check, so assumably there's a pointer there.
Any ideas?