private void button1_Click(object sender, EventArgs e) { int i, k; start = true; stop_thread = true; for (i = 0; i < 5; i++) { FTXObjCtrl.OpenLAN(Device_Ip[i], 7000, 1); for (k = 0; k < 12; k++) { FTXObjCtrl.SetInput(FSsystemID[i], FChladdr[k], 0); } FTXObjCtrl.Close(); } btnExit.Enabled = false; btnOnekeyTest.Enabled = true; second_count = 0; FTXObjCtrl.FreeObj(); //FTXObjCtrl.FreeObj(); }
private void Form1_FormClosed(object sender, FormClosedEventArgs e) { FTXObjCtrl.FreeObj(); }