[AD] readkey() crash in Dos-in-Windows

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



May I bring your attention to SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=485874&group_id=5665&atid=105665

It seems that Windows 9x doesn't like to play nice with large apps that use __dpmi_yield() (DJGPP, under Windows).

A proposed workaround is attached.


--
- Robert J Ohannessian
"Microsoft code is probably O(n^20)" (my CS prof)
http://pages.infinit.net/voidstar/
Index: keyboard.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/keyboard.c,v
retrieving revision 1.6
diff -u -b -r1.6 keyboard.c
--- keyboard.c	2001/11/06 15:30:46	1.6
+++ keyboard.c	2001/11/28 04:03:06
@@ -231,7 +231,9 @@
       if (keyboard_polled)
 	 poll_keyboard();
 
+      #ifndef ALLEGRO_DJGPP
       yield_timeslice();
+      #endif
    }
 
    c = key_buffer.key[key_buffer.start];


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