The Windows API function WriteFile set LastError to 6 (InvalidHandle) when program is runned under ConEmu, but the data are well written.
The same program run from the same location does not get this error when run from cmd.exe or console2.
The compilation is done using Visual Studio 2008 SP1. Issue is present if built in 32 and 64bits, debug or release. OS is Windows 7 64bits professional, ConEmu is version 150707 [64]
Hi,
The Windows API function WriteFile set LastError to 6 (InvalidHandle) when program is runned under ConEmu, but the data are well written. The same program run from the same location does not get this error when run from cmd.exe or console2.
The compilation is done using Visual Studio 2008 SP1. Issue is present if built in 32 and 64bits, debug or release. OS is Windows 7 64bits professional, ConEmu is version 150707 [64]
Here is a minimal sample to reproduce the issue:
Test have been done by adding an empty overlap structure, but issue is still present, and overlap structure content says that data have been written.
Tx ! Nicolas,