Skip to content

SysEx hangs MIDI stack, but not App using this code variation. #2

@Noemata

Description

@Noemata

As a follow up to my previous issue, this code variation might provoke some insight as it allows the App to keep running, the Manufacturer ID is received by the message handler, however the midi input is frozen for the associated device for any further calls:

                midiInputDevice.MessageReceived -= OnMessageReceived;
                midiInputDevice.MessageReceived += OnMessageReceived;

                // Get Vendor Id for port.
                var data = new byte[] { 0xF0, 0x7E, 0x10, 0x06, 0x01, 0xF7 };

                var backgroundThread = new BackgroundWorker();
                backgroundThread.DoWork += (_, __) =>
                {
                    midiOutputDevice.SendMessage(new MidiSystemExclusiveMessage(data.AsBuffer()));
                };
                backgroundThread.RunWorkerCompleted += (_, __) =>
                {
                };
                backgroundThread.RunWorkerAsync();

Sending a SysEx should never clog up IO! The code above suggests there is a bug in the UWP MIDI stack, since there is no issue sending SysEx messages under Win 10 Win32, and only the device associated with the SysEx call is hung with this variation of the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions