This project has moved and is read-only. For the latest updates, please go here.

exception {"NoDriver calling midiOutShortMsg"}

Jul 15, 2012 at 3:26 PM
Edited Jul 16, 2012 at 12:17 PM

Hello, I discover a problem today, I sending midi trough MIDI loopbe1 free apzz, a virtual wire.  Have this error:

NAudio.MmException was unhandled
  Message=NoDriver calling midiOutShortMsg
       at NAudio.MmException.Try(MmResult result, String function)
       at NAudio.Midi.MidiOut.Send(Int32 message)

This happen only when I run my code, and then lock windows , after unlock MS windows when  send MIDI NOTES, this error happen, but no if send CC, only with MIDI NOTES, I repeat not when send midi CC.
Hoppe can help to me Mark, 100% stuck on this, if window is locked when my software is running then when unlock windows, the software crash due that NAudio.MmException.


MidiMessage.StartNote(1, 127, 1).RawData);

Why this happen after lock windows and unlock windows?

Some idea?





Jul 17, 2012 at 9:37 AM

Not sure what is causing this, but the error is NoDriver, so there seems to be a problem with the MIDI driver. All you can do is close the device and reopen it

Jul 17, 2012 at 11:55 AM

Yes, is very clear is related to driver, I try closing and open again if system is locked, but have to surf deep on the windows api for detect when that happen.
Thank you!