Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
ConEmu cause Windows API WriteFile to return set InvalidHandle error #415
The Windows API function WriteFile set LastError to 6 (InvalidHandle) when program is runned under ConEmu, but the data are well written.
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 
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.