Using Microsoft Visual C++ 6.0 to debug a MIDI app under
NT or Win2000, I'm having a terrible problem with the
MIDI devices locking up. If the debugged app doesn't get
a chance to call midiInClose or midiOutClose, then the system
considers the MIDI device to still be owned, even after the
app is terminated. The next time I run any MIDI app, the
MIDI device is reported as unavailable with a
MMSYSERR_ALLOCATED result. Even if I completely exit
VC and restart it, the MIDI device is still unavailable. The
only way to overcome the problem is to reboot the system,
which, of course, is very time-consuming.
If you have encountered this problem and have found a solution,
and can share it with me, I would be thrilled! And would gladly
send you a free copy of my MidiNotate program.
-- Mark Walsen
Notation Software, Inc.