Laurens Holst - 2014-08-20

<wouterv> not 100% sure yet, but it seems both MidiInWindows and MidiInCoreMidi don't correctly restore on loadstate .. they should check whether they were plugged and redo the stuff done in plughelper() (e.g. see input/Joystick.cc : serialize())</wouterv>

<wouterv> the following might explain the problem: currently loadstate doesn't correctly restore MidiInCoreMidi: isPlugged() is true, but the invariants established in PlugHelper() don't hold .. e.g. 'client' is not initialized</wouterv>

<wouterv> when later such a machine is destroyed unplugHelper() is called and that uses the unitialized 'client' variable</wouterv>

<wouterv> and that prints (hopefully) the Failed to dispose of MIDI client message</wouterv>