This project has moved. For the latest updates, please go here.

exception {"NoDriver calling midiOutShortMsg"}

Jul 15, 2012 at 2:26 PM
Edited Jul 16, 2012 at 11:17 AM

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


NAudio.MmException was unhandled
  HResult=-2146233088
  Message=NoDriver calling midiOutShortMsg
  Source=NAudio
  StackTrace:
       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?

 

 

 

midiOut.Send(

Coordinator
Jul 17, 2012 at 8: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 10: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!