-
-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.4.0-beta.81 throws an ObjectDisposedException sometimes #261
Comments
I'm seeing the same issue using McMaster.Extensions.Hosting.CommandLine Version="2.4.0-beta.81" |
Looks like a bug. I'll take a look before I release 2.4.0-rc. I have limited free time to work on this library, so if someone else is interested in taking a look, I would happy to review and merge a PR to fix this. |
Give 2.4.0-beta.94 a try and let me know if it doesn't resolve your issue.
|
Installed v2.4.0-beta.99 and the error is gone. |
Try using the package manager UI instead:
https://docs.microsoft.com/en-us/nuget/consume-packages/install-use-packages-visual-studio#package-sources
|
Thanks, I ended up doing that and installed beta 99 and I no longer see the exception during shutdown. |
Thanks for confirming. |
Describe the bug
I needed Ctrl-C support, so I was happy to find that the latest beta had just gotten that feature. But now I'm seeing an ObjectDisposedException - but only when running without a debugger. While debugging, I see nothing.
To Reproduce
I've produced this program that exhibits the behavior.
Expected behavior
Program terminates without exception.
Screenshots
When cancelling
When running till end
Additional context
Stacktrace thrown.
The text was updated successfully, but these errors were encountered: