Colorful.Console icon indicating copy to clipboard operation
Colorful.Console copied to clipboard

The handle is invalid.

Open grounzero opened this issue 4 years ago • 2 comments

Got this error when running Nuke.GlobalTool that references this repo and was told to raise a bug here.

The handle is invalid.
   at System.ConsolePal.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
   at System.Console.set_CursorLeft(Int32 value)
   at Colorful.Console.set_CursorLeft(Int32 value)

More info here

https://github.com/nuke-build/nuke/issues/423

grounzero avatar Mar 04 '20 23:03 grounzero

Additional info: I notice this seems to happen when using https://conemu.github.io/

Using cmd.exe I do not see this exception.

grounzero avatar Mar 05 '20 00:03 grounzero

Yes it happens if console is launched without window visibilty ... It occur at Console.Clear or Console.CursorLeft/CursorTop because there's no allocated buffer for writing to display

Sonic3R avatar Jan 15 '21 12:01 Sonic3R