Commit 6ab7294e authored by wangjunqiang's avatar wangjunqiang

修复组分越界的bug

parent 2ad631d4
This diff is collapsed.
...@@ -110,7 +110,7 @@ namespace GcDevicePc ...@@ -110,7 +110,7 @@ namespace GcDevicePc
tempshow.Text = "运行时间/总时间"; tempshow.Text = "运行时间/总时间";
if (globaldata.MethodRun_Statue == 4 || globaldata.MethodRun_Statue == 5) if (globaldata.MethodRun_Statue == 4 || globaldata.MethodRun_Statue == 5)
// tempshow.SubItems.Add((globaldata.RunTime_Now/60.0f).ToString("0.0") + "/" + (globaldata.RunTotal_Now/60.0f).ToString("0.0")); // tempshow.SubItems.Add((globaldata.RunTime_Now/60.0f).ToString("0.0") + "/" + (globaldata.RunTotal_Now/60.0f).ToString("0.0"));
tempshow.SubItems.Add((globaldata.m_dpbuffer.ShowList.showtime.runtimenow / 60.0f).ToString("0.0") + "/" + (globaldata.m_dpbuffer.ShowList.showtime.alltime / 60.0f).ToString("0.0")); tempshow.SubItems.Add((globaldata.m_dpbuffer.ShowList.showtime.runtimenow / 60.0f).ToString("0.00") + "/" + (globaldata.m_dpbuffer.ShowList.showtime.alltime / 60.0f).ToString("0.00"));
else else
tempshow.SubItems.Add("未运行"); tempshow.SubItems.Add("未运行");
......
...@@ -849,6 +849,5 @@ namespace GcDevicePc.ProThread ...@@ -849,6 +849,5 @@ namespace GcDevicePc.ProThread
} }
} }
} }
} }
...@@ -106,8 +106,8 @@ namespace GcDevicePc.ProThread ...@@ -106,8 +106,8 @@ namespace GcDevicePc.ProThread
try try
{ {
client = new UdpClient(new IPEndPoint(IPAddress.Any, 0)); // client = new UdpClient(new IPEndPoint(IPAddress.Any, 0));
// client = new UdpClient(new IPEndPoint(IPAddress.Parse(this._localip), 0)); client = new UdpClient(new IPEndPoint(IPAddress.Parse(this._localip), 0));
endpoint = new IPEndPoint(IPAddress.Parse("255.255.255.255"), 233); endpoint = new IPEndPoint(IPAddress.Parse("255.255.255.255"), 233);
// endpoint = new IPEndPoint(IPAddress.Parse("192.168.10.230"), 233); // endpoint = new IPEndPoint(IPAddress.Parse("192.168.10.230"), 233);
client.Send(sendBytes, sendBytes.Length, endpoint); client.Send(sendBytes, sendBytes.Length, endpoint);
......
...@@ -13,7 +13,7 @@ namespace GcDevicePc ...@@ -13,7 +13,7 @@ namespace GcDevicePc
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
bool createNew; bool createNew;
// Application.Run(new DebugForm());
{ {
using (System.Threading.Mutex mutex = new System.Threading.Mutex(true, Application.ProductName, out createNew)) using (System.Threading.Mutex mutex = new System.Threading.Mutex(true, Application.ProductName, out createNew))
{ {
......
...@@ -21,9 +21,9 @@ namespace GcDevicePc ...@@ -21,9 +21,9 @@ namespace GcDevicePc
{ {
int ret = 1; int ret = 1;
FileServerClient singlesend = new FileServerClient(); FileServerClient singlesend = new FileServerClient();
singlesend.WtClientInit("192.168.10.230", 911); singlesend.WtClientInit("192.168.1.88", 911);
ret = singlesend.WtHMICloseRro("WtMainProc"); ret = singlesend.WtHMICloseRro("WtMainProc");
if (ret == 1) // if (ret == 1)
{ {
MessageBox.Show("停止HMI成功!"); MessageBox.Show("停止HMI成功!");
ret = singlesend.WtHMIRunPro("GcDevice.exe", globaldata.exeremoteFolder); ret = singlesend.WtHMIRunPro("GcDevice.exe", globaldata.exeremoteFolder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment