Telnet terminal window closing issue fixed, ver.2.12.435

This commit is contained in:
Milan Hanajik
2017-01-16 13:49:30 +01:00
parent c73cf7002f
commit 13d00ee18e
5 changed files with 4 additions and 25 deletions
@@ -106,12 +106,6 @@ namespace TBF.BenchControl.Network.Camera.CLP1611
public void StopDevice()
{
if (terminalDlg != null)
{
terminalDlg.CloseDlg();
terminalDlg = null;
}
if (Telnet != null)
{
Telnet.Dispose();
@@ -35,21 +35,5 @@ namespace TBF.BenchControl.Network.Camera.CLP1611
{
vtTextBox.Text = args.VtText;
}
delegate void CloseDlgDlgt(); /// Delegate of void Fn(void) function
public void CloseDlg()
{
if (dlgLoaded)
{
Invoke(new CloseDlgDlgt(OnCloseDlg));
}
}
void OnCloseDlg()
{
Close();
}
}
}
@@ -150,6 +150,7 @@ namespace TBF.BenchControl.Network.Camera.Roi
}
catch
{
log.FatalFormat("Roi : UdpListener() thread failed");
}
}
@@ -271,7 +271,7 @@ namespace TBF.BenchControl.Network.Telnet
Terminate();
if (!thread.Join(2000)) throw(new Exception("Fatal error"));
if (!thread.Join(5000)) throw(new Exception("Fatal error"));
}
/// <summary>
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.12.434.1")]
[assembly: AssemblyFileVersion("2.12.434.1")]
[assembly: AssemblyVersion("2.12.435.1")]
[assembly: AssemblyFileVersion("2.12.435.1")]