I have this thread that runs code of the following form where strm1 in the case i am testing is the console stdin.
while (true) { strm1.Read(buffer, 0, 1); dosomething1(buffer); }
If enter is pressed, dosomething1() calls dosomething2(). However, even when i press enter, i still have to press some other key for dosomething2() to run. How can i fix this? thankyou.
In the end, I solved the problem: by replacing the
Streams toStreamReaders! Probably a Microsoft implementation problem, but at least it solved the problem.