Reported in fb-support
The problem is that on Windows 7 ReadConsole() doesn't accept input buffer of 64K wide characters.
This is never documented limitation and it looks like it was fixed in Windows 10 only.
The fix is to handle ERROR_NOT_ENOUGH_MEMORY error and reduce input buffer size.
On my test Win7 it accept 31231 chars.
Reported in fb-support
The problem is that on Windows 7
ReadConsole()doesn't accept input buffer of 64K wide characters.This is never documented limitation and it looks like it was fixed in Windows 10 only.
The fix is to handle ERROR_NOT_ENOUGH_MEMORY error and reduce input buffer size.
On my test Win7 it accept 31231 chars.