- FormMainDisplay

1. Ethernet 통신 아이콘(Connect/Disconnect) 표시를 위하여 사용하는 쓰레드 삭제
      -> timer로 제어
 - 가비지 컬렉션 미사용 처리
master
DESKTOP-999R8N3\CJY 2023-03-03 18:22:52 +09:00
parent 18a795294d
commit edc0ea8a64
5 changed files with 55 additions and 4 deletions

View File

@ -66,7 +66,7 @@ namespace ITC81DB_0H.Controls
private void DefaultSetting()
{
this.labelSerialNo.Text = this.ParentForm.ParentForm.SystemConfig1.SerialNumber;
this.labelDisplayVer.Text = "2.1.0";
this.labelDisplayVer.Text = "2.1.2";
}
public void UpdateMainBoardVersionDisplay(string version)

View File

@ -1059,9 +1059,47 @@ namespace ITC81DB_0H.Forms
}
private void timerClientConnectCheck_Tick(object sender, EventArgs e)
{
this.ThreadClientConnected = new Thread(this.ThreadDelegate);
this.ThreadClientConnected.Priority = ThreadPriority.Highest;
this.ThreadClientConnected.Start();
//this.ThreadClientConnected = new Thread(this.ThreadDelegate);
//this.ThreadClientConnected.Priority = ThreadPriority.Highest;
//this.ThreadClientConnected.Start();
try
{
if (this.ParentForm.smartTCPMultiServer.IsStart == true)
{
if (this.ParentForm.smartTCPMultiServer.ClientInfoList == null)
{
this.ParentForm.DelegateUISeverStatus(false);
// 로그
if (this.ParentForm.IsCommunicationLogOpen == true)
this.ParentForm.smartFileCommunicationLog.WriteString(string.Format("ClientConnectCheck ({0:yyyy-MM-dd HH:mm:ss}): false", DateTime.Now));
}
else
{
this.ParentForm.DelegateUISeverStatus(true);
// 로그
if (this.ParentForm.IsCommunicationLogOpen == true)
this.ParentForm.smartFileCommunicationLog.WriteString(string.Format("ClientConnectCheck ({0:yyyy-MM-dd HH:mm:ss}): true", DateTime.Now));
}
//this.ThreadClientConnected.Join();
//if (this.GCCount > 1800)
//{
// System.GC.Collect();
// System.GC.WaitForPendingFinalizers();
// this.GCCount = 0;
//}
//else
// this.GCCount++;
}
}
catch (Exception ex)
{
FormMain.Exception(ex);
}
}
private void pictureBoxIconAlarm_Click(object sender, EventArgs e)

View File

@ -12,6 +12,19 @@
기본형 컨베어 고정밀센서 계량기
*/
@ Ver 2.1.2 by CJY
- 2023.03.03
- Ver 2.1.1 Modify
- FormMainDisplay
1. Ethernet 통신 아이콘(Connect/Disconnect) 표시를 위하여 사용하는 쓰레드 삭제
-> timer로 제어
@ Ver 2.1.1 by CJY
- 2023.03.03
- Ver 2.1.0 Modify
- 가비지 컬렉션 사용
쓰레드 사용 30분마다 가비지 컬렉션을 사용하여 객체 해제시킴
@ Ver 2.1.0 by CJY
- 2023.02.21
- Ver 2.0.0 Modify