public static void DisposeSingleton() { if (singleton != null) { singleton.Dispose(); singleton = null; } }
void Application_ApplicationExit(object sender, EventArgs e) { // free up UsbIRRT resources UsbIRRT.DisposeSingleton(); }