public void stop() { for (int i = 0; i < mGigabyteAmdRadeonGraphicsModuleList.Count; i++) { mGigabyteAmdRadeonGraphicsModuleList[i].Dispose(); } mGigabyteAmdRadeonGraphicsModuleList.Clear(); for (int i = 0; i < mGigabyteNvidiaGeforceGraphicsModuleList.Count; i++) { mGigabyteNvidiaGeforceGraphicsModuleList[i].Dispose(); } mGigabyteNvidiaGeforceGraphicsModuleList.Clear(); if (mGigabyteSmartGuardianFanControlModule != null) { mGigabyteSmartGuardianFanControlModule.Dispose(); mGigabyteSmartGuardianFanControlModule = null; } if (mGigabyteHardwareMonitorControlModule != null) { mGigabyteHardwareMonitorControlModule.Dispose(); mGigabyteHardwareMonitorControlModule = null; } if (mGigabyteGraphicsCardControlModule != null) { mGigabyteGraphicsCardControlModule.Dispose(); mGigabyteGraphicsCardControlModule = null; } mGigabyteTemperatureList.Clear(); mGigabyteFanSpeedList.Clear(); }
public void stop() { if (OptionManager.getInstance().IsGigabyteGpu == true) { for (int i = 0; i < mGigabyteAmdRadeonGraphicsModuleList.Count; i++) { try { mGigabyteAmdRadeonGraphicsModuleList[i].Dispose(); } catch { } } mGigabyteAmdRadeonGraphicsModuleList.Clear(); for (int i = 0; i < mGigabyteNvidiaGeforceGraphicsModuleList.Count; i++) { try { mGigabyteNvidiaGeforceGraphicsModuleList[i].Dispose(); } catch { } } mGigabyteNvidiaGeforceGraphicsModuleList.Clear(); } try { if (mGigabyteSmartGuardianFanControlModule != null) { mGigabyteSmartGuardianFanControlModule.Dispose(); mGigabyteSmartGuardianFanControlModule = null; } } catch { } try { if (mGigabyteHardwareMonitorControlModule != null) { mGigabyteHardwareMonitorControlModule.Dispose(); mGigabyteHardwareMonitorControlModule = null; } } catch { } try { if (mGigabyteGraphicsCardControlModule != null) { mGigabyteGraphicsCardControlModule.Dispose(); mGigabyteGraphicsCardControlModule = null; } } catch { } mGigabyteTemperatureList.Clear(); mGigabyteFanSpeedList.Clear(); }