You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -185,17 +191,21 @@ public static MidiInCapabilities DeviceInfo(int midiInDeviceNumber)
185
191
}
186
192
187
193
/// <summary>
188
-
/// Closes the MIDI out device
194
+
/// Closes the MIDI in device
189
195
/// </summary>
190
196
/// <param name="disposing">True if called from Dispose</param>
191
197
protectedvirtualvoidDispose(booldisposing)
192
198
{
193
199
if(!this.disposed)
194
200
{
201
+
disposeIsRunning=true;
195
202
//if(disposing) Components.Dispose();
196
203
197
204
if(SysexBufferHeaders.Length>0)
198
205
{
206
+
//// When SysexMessageReceived contains event handlers (!=null) , the 'midiInReset' call generate a infinit loop of CallBack call with LONGDATA message having a zero length.
207
+
//SysexMessageReceived = null; // removin all event handler to avoir the infinit loop.
208
+
199
209
// Reset in order to release any Sysex buffers
200
210
// We can't Unprepare and free them until they are flushed out. Neither can we close the handle.
0 commit comments