Elevator
Elevator copied to clipboard
Pressing Escape to exit program causes a System.ObjectDisposedException
Attempting to escape out of the program by pressing the ESC key results in the program throwing an unhandled ObjectDisposedException. The message description states "Safe handle has been closed". The line where the exception is thrown is in Program.cs line 79: "tokenSource.Cancel()".
I suspect the issue is that the server object is already disposed because of line 78: server.Shutdown() which calls Dispose(). I'll do some more investigation.
Just to double-check: which command line shell were you using? PowerShell? cmd.exe?
cmd.exe