Re: [AD] DOS port instability under Win 9X

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Try using an Allegro program that uses readkey() in a manner which
> requires it to wait (ie, that does NOT use keypressed() to wait for a
> key to be ready) for an extended period of time, and you may see
> what I'm talking about.

#include <allegro.h>

int main(void)
{
   allegro_init();
   install_keyboard();
   while ((readkey() & 0xFF) != 27)
      ;

   return 0;
}

Tested under Win95 OSR2, waiting during 33 minutes (!) for a key press: it
stopped as soon as I hit the ESC key.

Maybe is there kind of a conflict in your program ? Could you try to find
the minimal chunk of code that exhibits the described behaviour ?

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/