StackHash APP CRASH

6efadd001e53e8bc67eefabc01a4de7e
0
gamer27lv 101 May 15, 2012 at 22:42

hi guys I am having a problem with my game crashing..

I first set up a state machine to switch between the title / levels which was working fine when I had just did an SDL_FillRect on each game state.

Now I have a title screen, then you enter the game which just prints out a graphical maze that is setup with a 2d vector of tiles, each tile is a Tile class object.

I finished the first level and did a test to make sure I can still change between states, I set a tile that will send you back to the title screen when you walk into it. It works, but then when you try to enter the game again there is a Stack Hash error It seems like it has something to do with the map vector, when I comment out the map and just have a black screen with my player I can escape back to the title screen and then back to the black screen with my player.. (but then if you try it again it crashes)

so I am thinking maybe it has something to do with both the map and my player graphics or the vector.. Does anyone recognize the error?

I have been streaming as I build my learning projects on twitch.tv/gamer27lv if anyone shows up there in the chat box I can show you the game and the crash

thanks for any info!

3 Replies

Please log in or register to post a reply.

6efadd001e53e8bc67eefabc01a4de7e
0
gamer27lv 101 May 16, 2012 at 03:58

I narrowed it down to my player, it is not the map crashing the game…

6efadd001e53e8bc67eefabc01a4de7e
0
gamer27lv 101 May 16, 2012 at 04:05

looks like I got is solved nevermind…

EDIT: nevermind….not solved

820ce9018b365a6aeba6e23847f17eda
0
geon 101 May 16, 2012 at 06:50

Some code and stack traces would help.