程序点右上方的X后,程序像假死一样没有反应,只有在任务栏上点击右键关闭才可以。
请问是什么原因呢?串口,定时器,线程我都在关闭程序时释放了。。
        private void FrmGather_FormClosing(object sender, FormClosingEventArgs e)
        {
            timerStatusUpdate.Dispose();
            timerSendWeight.Dispose();
            spReceive.Close();   //关闭串口
            ThSKConnect.Abort(); //关闭线程
            ThCheckState.Abort();  //关闭线程
            ThSKSend.Abort();        }