https://bugzilla.novell.com/show_bug.cgi?id=417061
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=417061#c1 Alex Fort <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] --- Comment #1 from Alex Fort <[EMAIL PROTECTED]> 2008-08-13 11:25:46 MDT --- I've been looking into this bug, and I think I've identified what's happening. In the constructor for ConsoleDriver(class/corlib/System/ConsoleDriver.cs), the IsConsole property is being set to false, which causes a NullConsoleDriver to be created instead of a WindowsConsoleDriver. Since ReadKey in NullConsoleDriver just returns a ConsoleKeyInfo.Empty, there is no waiting for user input. Upon further investigation, by setting IsConsole to true, I can call WindowsConsoleDriver.ReadKey, but it throws an exception, because ReadConsoleInput (class/corlib/System/WindowsConsoleDriver.cs) returns false. GetLastWin32Error returns "6" in this case, but that seems a bit cryptic. I'm not sure what's causing ReadConsoleInput (kernel32.dll) to return false, but I'm still looking into this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
