C# Programming
06-07-2013, 10:10 PM
I have 2 threaded applications one called diag and the other called tester.
The both access the same circuit boards, one USB Relay board, and another board that it communicates via TCP.
I have button controls on each application screen, that I can start the other.
diag -> tester
tester -> diag
code
private void btnOptions_Click(object sender, EventArgs e) { //ShowOptions(); _continue = false; SetRelaysALLOffCallBack(); // Reset Relays _board.Disconnect(); this.Close(); Process.Start("C:/Diag.exe"); }
code
In my code I open the other application, and close the application that is open.
This works fine, but the time that the other application opens takes about 30 seconds.
How can I speed up the time for the applications to open ??
The both access the same circuit boards, one USB Relay board, and another board that it communicates via TCP.
I have button controls on each application screen, that I can start the other.
diag -> tester
tester -> diag
code
private void btnOptions_Click(object sender, EventArgs e) { //ShowOptions(); _continue = false; SetRelaysALLOffCallBack(); // Reset Relays _board.Disconnect(); this.Close(); Process.Start("C:/Diag.exe"); }
code
In my code I open the other application, and close the application that is open.
This works fine, but the time that the other application opens takes about 30 seconds.
How can I speed up the time for the applications to open ??