Re: [AD] X shutdown sequence |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 24 Nov 2001, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> But one other one while running any app that
> uses allegro through a shared object.
>
> XIO: fatal IO error 0 (Success) on X server ":0.0"
> after 64 requests (61 known processed) with 0 events remaining.
>
> Heres the simplest I could get it:
Try this:
/* mod-test.c -> mod-test.so
gcc -Wall -ggdb mod-test.c -o mod-test.so -shared `allegro-config --libs`
*/
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <allegro.h>
int dummy()
{
return 0;
}
int main() {
install_allegro(SYSTEM_AUTODETECT, &errno, dummy);
set_color_depth(16);
set_gfx_mode(GFX_XWINDOWS, 640, 480, 0, 0);
while(1) { clear(screen); }
exit(0);
}
END_OF_MAIN();
Of course, now it's your own fault if you don't call allegro_exit.