Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » System Freeze after starting allegro

This thread is locked; no one can reply to it. rss feed Print
System Freeze after starting allegro
Bertram Geck
Member #8,429
March 2007

Hi,

after I got the setup of allegro on my Laptop with OpenSuse 10.2 running and the setup.c program out of the allegro directory compiled there is another prooblem I need help on:
After starting the setup, that has been compiled errorfree, the screen of ma laptop gets dark, the rectangle appears with the buttons, but the the system freezes:
No Mouse, no keyboard, nothing works. It needs a power-on-off reboot to get the system up and running again.

When I take a very easy program like:

#include <allegro.h>

int main(){

   allegro_init();
  install_keyboard();
  set_gfx_mode(GFX_AUTODETECT , 640, 480, 0, 0);
  putpixel(screen,160,100,30);

  allegro_exit();
  return 0;

}
END_OF_MAIN();

same result, except no rectangle and buttons.

I wanted to verify the allegro-code on the Laptop, before I let it run on the target device.

Any hints on that problem ? I can provide all data, if needed.

Best regards
Bertram

GullRaDriel
Member #3,861
September 2003
avatar

What version of allegro do you use ?

I experienced the same problem with an old version. Try to update to the latest allegro version and be sure that you have uninstalled the whole old before upgrading.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Bertram Geck
Member #8,429
March 2007

HI,
I am using 4.2.1 and it is the first version I have on my PC.
There are no former versions to be deinstalled.

Regards
Bertram

Kitty Cat
Member #2,815
October 2002
avatar

Did Allegro compile with X11 support?

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

Go to: