Now I'm really confused!
Things have been going great with Allegro 5, but all of the sudden I've begun to get this message every time I run something.
-----------------------------------------------
Debug Error!
Program: ...visual studio
2010\Projects\UsingTimers\Debug\UsingTimers.exe
R6010
- abort() has been called
(Press Retry to debug the application
-----------------------------------------------
Every time that I click Retry it directs me to a file named crt0msg.c and this code in particular:
Not sure whats going on here. If you need my code just say so.
abort is called by the debug version of Allegro when something catastropic has happened (calling destroy on a NULL bitmap, bitmap width less than zero, stuff like that.) If you're using the Debug libraries that could be the cause.
In that case here's my code, if there's something wrong could you tell me please?
You didn't call al_init_primitives_addon().
I included the addon into my code and got rid of the 2 includes that I didn't need: '#include <allegro5\allegro_ttf.h>' and '#include <allegro5\allegro_font.h>'
and I STILL get the abort message.
Could it have anything to do with my additional dependencies? I'm pretty sure that this is correct though.
allegro-5.0.6-monolith-md-debug.lib
That's the only thing that I have in it, is there anything wrong?
I can't tell if you understood Matthew Leverton or not, but I suspect not. You're using the primitives addon (i.e., al_draw_filled_rectangle), but you didn't initialize the addon first (i.e., al_init_primitives_addon). If you call that function during your initialization then all should be good (unless there's another problem). Are you doing this now?
Also, read this: http://wiki.allegro.cc/index.php?title=Return_values.
I had that written before.
Now that I read the wiki page that you posted I'm wondering, does that mean that I need to put:
or something else? That's the part that's confusing me.
EDIT: Thank you guys for making me look at the return values. Because once I looked at those I looked at the rest of my code and when I did that, I realized that I didn't install the keyboard! Thanks again!
--Cactus