public frmExperment() { InitializeComponent(); InitUI(); DoUIInit(); m_MemeryFile = new MemeryFile(); }
private void frmExperment_FormClosed(object sender, FormClosedEventArgs e) { try { if (this.m_ReadThread != null) { m_ReadThread.Abort(); } } catch (System.Exception ex) { m_ReadThread = null; } try { if (this.m_WriteThread != null) { m_WriteThread.Abort(); } } catch (System.Exception ex) { m_WriteThread = null; } if (m_MemeryFile != null) { m_MemeryFile.DisposeMemoryMapFile(); m_MemeryFile = null; } if (m_AlarmList != null) { m_AlarmList.Clear(); m_AlarmList = null; } if (m_DataList != null) { m_DataList.Clear(); m_DataList = null; } }