Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: XP bug? (code fragment)

Author: Alessandro Scotti

Date: 14:20:12 08/27/04

Go up one level in this thread


I have found similar problems with Windows 2000, also when using the native
Win32 API. I think there might be a bug in how the console standard input is
managed. Here's what I tried: I used one API to peek at the input event queue
and another API (ReadFile) to read characters from the standard input. I typed
"asd" and the event queue contained, correctly, six events corresponding to the
press and release of "a", "s" and "d". When I read from standard input, though,
I got "a?d". This also seems to be worse on slower machines, and only happens
with keyboard input, not with pipes or file redirection.




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.