R
Rich Pasco
I couldn't find a newsgroup for the Win32 API calls, so I hope I get
an answer here.
I have noticed that the Win32 API call ReadConsoleOutput fails (returns
false) whenever its last parameter psrctSourceRect defines a rectangle
whose columns x rows product exceeds about 13,300 characters. This
is true even if the allocation of the pchiDestBuffer (specified in
coordDestBufferSize) is very large.
When it fails (returns false) the function GetLastError returns 8, but I
could not find an explanation of what that means.
Known to work with 13298
Known to fail with 13310
Attached is the full source code and executable for the program making
this determination.
Can anyone say why 13300 is the cause of so much trouble?
- Rich
an answer here.
I have noticed that the Win32 API call ReadConsoleOutput fails (returns
false) whenever its last parameter psrctSourceRect defines a rectangle
whose columns x rows product exceeds about 13,300 characters. This
is true even if the allocation of the pchiDestBuffer (specified in
coordDestBufferSize) is very large.
When it fails (returns false) the function GetLastError returns 8, but I
could not find an explanation of what that means.
Known to work with 13298
Known to fail with 13310
Attached is the full source code and executable for the program making
this determination.
Can anyone say why 13300 is the cause of so much trouble?
- Rich