private void SettingsForm_Closed(object sender, EventArgs e) { try { // stop serial ir receiver thread serialuir.Close(); } catch (Exception) { // Ignore } if (null != dinputRemote) { // make sure the listener thread gets killed cleanly! dinputRemote.Dispose(); dinputRemote = null; } }
private void SettingsForm_Closed(object sender, EventArgs e) { try { // stop serial ir receiver thread serialuir.Close(); } catch (Exception) { // Ignore } // Disable DirectX Input (not compatible with NET4 and later) //if (null != dinputRemote) //{ // // make sure the listener thread gets killed cleanly! // dinputRemote.Dispose(); // dinputRemote = null; //} }