First Allegro game! (remove_mouse() crashing)
hi, this is my first post here on gamedev =) (forgive my english) i'm finishing (or at least trying to finish) my first allegro game which you can download (windows binary) and see screenshots at: http://www.alumnos.utfsm.cl/~agustin_antonissen/juegos/index.php?destino=downloads its in spanish so if you want a (very crappy) english version just unzip the english.zip that comes with it and overwrite all the files. it still crashes though. I was looking for (one of) the reason it crashed and i found that the problem was while executing the remove_mouse(), when the player left one of the menues to go into the game. This function doesn't even have a return value so i guess it's not usual for it to fail. So... anyone has any suggestions? I don't want to post code because i'm pretty sure the error is not near the remove_mouse() instruction and I have absolutely no clue what could be causing this instruction to fail. And it doesn't crash everytime it reaches that part of the code... oh, and another thing i cant figure out is that when the game crashes, its destroys (part of) the file where ive saved the game. Because when i load the game again to keep playing the score and most of the player info is different. Im sure i only open and close this file in the save() and load() functions. thats it, hope anyone could give me some hint about what could be wrong, or what should i check. thanks anyway, and any sugestions or feedback of the game will be welcome =) bye i almost forgot, im using allegro 4.0.3 in Windows XP home edition.
I can't look at the program right now (I am at school) but I would think that your error is some sort of memory overflow. It is most unlikely that that function would cause anything to crash, so make sure anything you are doing with pointers/arrays before that function is good. I'll post more when I get home.
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement