-
Notifications
You must be signed in to change notification settings - Fork 26
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
Exception on device disconnect on Windows #49
Comments
Thanks for the report! @noname22 do you have any idea on how this |
What I have figured out so far:
|
I want to mention that I didn't have this when I was using NAudio, so comparing to it may be useful. |
I wouldn't be surprised if we get a MidiInMessage.Close before that message (which we currently ignore). See here. If that's the case we should ignore any messages after close. |
Thanks, but it does not seem to be sent. I tried adding |
Ah, crap :( Is it possible to just skip any zero byte messages? |
After all there was no any decent solution, so I just added a workaround (skip it) code at 6b197af. I will be pushed to nuget soon. |
I run
MidiAccessManager.Default.Inputs.ToList()
every 500ms, and it crashes with the following stacktrace when a MIDI device gets removed:Input from my device works fine, and on Linux I don't have this issue. You can see my usage here.
The text was updated successfully, but these errors were encountered: