Symptoms
Consider the following scenario:
-
You develop an application that uses the midiInGetNumDevs function to retrieve the number of connected MIDI input devices.
-
You run the application on a Windows 8-based computer.
-
You insert a universal serial bus (USB) MIDI device, and then you let the application call the midiInGetNumDevs function.
-
You remove the USB MIDI device.
-
You let the application call the midiInGetNumDevs function again.
In this scenario, the midiInGetNumDevs function returns the previous number of connected MIDI input devices.
Note The following functions may also behave incorrectly in Windows 8:-
midiInGetDevCaps
-
midiInGetNumDevs
-
midiInMessage
-
midiInOpen
-
midiInPrepareHeader
-
midiInReset
-
midiInStart
-
midiInStop
-
midiInUnprepareHeader
Cause
This issue occurs because disconnected devices are incorrectly enumerated when the functions are called.
Resolution
Update information
To resolve this issue, install update rollup 2862768. For more information about how to obtain this update rollup package, click the following article number to view the article in the Microsoft Knowledge Base:
2862768 Windows RT, Windows 8, and Windows Server 2012 update rollup: August 2013
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
More Information
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates