Hi! I'm new to this forum so please be gentle with me
I would like to know if there is possible to prevent windowed allegro-applictations
from crashing upon exit?
When I had Windows XP installed, windowed applications did not crash. But since I got Windows 7, every windowed allegro-application I've made have been crashing upon exit.
And by windowed I mean this:
set_gfx_mode( GFX_AUTODETECT_WINDOWED, SCR_W, SCR_H, 0, 0 );
Fullscreen applications never crashes this way.
set_gfx_mode( GFX_AUTODETECT_FULLSCREEN, SCR_W, SCR_H, 0, 0 );
The programs themselves works fine, it's just a bit annoying to see the program stop
answering instead of just closing
Is this related to the desktop colordepth?
Any answer is much appreciated!
Which version of Allegro are you using?
Post more code. In <code></code> tags.
Are your programs crashing (windows error message), or are they freezing (non-responsive)? If they're freezing, try calling allegro_exit manually before main returns.
Like Gnolam said, show us code. Show us a minimal example that does this for you.
Thank for your replies!
Im using allegro version 4.2.3.1 (atleast those numbers)
The program is freezing (non-responsive) after exiting
This is a minimal example:
I tried calling allegro_exit() manually, but it didnt change anything.
If I change GFX_AUTODETECT_WINDOWED, to GFX_AUTODETECT or GFX_AUTODETECT_FULLSCREEN
then this does not happen.
Upgrade to Allegro 4.4, and report back.
One thing I forgot to mention is that the "grabber" tool in allegro (windowed), used to create datafiles, also freezes after exiting.
Still trying to update allegro to 4.4.2, but I can't figure out how. Any help?
Upgrade to Allegro 5.0, and report back.
Still trying to update allegro to 4.4.2, but I can't figure out how. Any help?
Tell us what goes wrong.
Upgrade to Allegro 5.0, and report back.
The thing is, I have no clue at all how to update allegro.
I'm using Codeblocks with MinGW as the compiler.
Should I just copy the include-folder from allegro5 to the mingw include-folder, overwriting all files?
Sorry guys, I'm not very experienced with installing libraries.
We have a little disorganized wiki with big articles, this one, will allow you to install Allegro 5.0.4 which is the last version compiled for our fellow Michał Cichoń. The tutorial works as a charm, not said by me .
Remember that that tutorials explain you how to install allegro(using pre-compiled libraries), doesn't explain you how to build Allegro, those are two very different things... Anyway, read it.
What??
Still trying to update allegro to 4.4.2, but I can't figure out how. Any help?
You can either download the source from http://alleg.sourceforge.net/download and build it yourself, or you can use the binaries from the Allegro files page.
I have successfully installed Allegro 5 and the problem is no more!
Unfortunatley, now I have to learn all the functions again
Quick question, which Allegro version do you guys recommend overall? Is version 5 better than 4.4?
Thanks for your help!
Version 5.
I'm still going to keep A4 around for image utilities, due to the ease of pixel manipulation.