Consider the following scenario:
In this scenario, any subsequent process creation attempts fail, and you receive the following error message:
Note This problem occurs even if the standard output still points to the original screen buffer.
- On a computer that's running Windows 8.1 or Windows Server 2012 R2, you create a new console screen buffer by using the FILE_SHARE_WRITE option.
- You use the SetConsoleActiveScreenBuffer API to set this screen as active.
In this scenario, any subsequent process creation attempts fail, and you receive the following error message:
The application was unable to start correctly (0xc0000142).
Note This problem occurs even if the standard output still points to the original screen buffer.