I use the Dev-C++ compiler, but recently I moved all the files onto another partition, and ever since, my programs crash when they encounter the "screen" bitmap. I have tested this a number of times. Even programs that were working fine, if I altered them slightly, they would crash when I ran them.
An example:
#include <allegro.h> int main () { allegro_init (); set_gfx_mode (GFX_AUTODETECT_WINDOWED, 250, 100, 0, 0); textprintf_ex(screen, font, 0, 0, makecol(0, 0, 0), 0, "Hello World!"); allegro_exit (); return 0; }END_OF_MAIN ()
This compiles perfectly, but crashes when I run it.
P.S. It is definately something wrong with the "screen" bitmap because I have tested it against several of my programs.
Did you forget that you posted about this like four hours ago?
Please do not double post
Yeah, but no-one seemed to be helping me so I figured I'd give it one last try, since I only ask questions once every so often.
Uhm, this is a forum, not IRC. You may have to wait at least 12 hours to get an answer. Now you have pretty much erased that chance though.
Yeah, but no-one seemed to be helping me so I figured I'd give it one last try, since I only ask questions once every so often.
You got good advice in that thread which you ignored. Read it again.
Geez, I am sorry, I don't do forums that often. I usually try to figure stuff out myself, but this has just been bugging me for days now.
Edit: I didn't ignore it, I corrected my code in the third post. If it was as easy as that I would have figured it out ages ago.
Nope, you didn't. Check the return values. They are there for a reason.