From d4078b106a91916b5687ad2d8249ce2862b42cd0 Mon Sep 17 00:00:00 2001 From: lhiven <236881222@qq.com> Date: Fri, 11 Aug 2023 08:19:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E6=8B=8D=E7=85=A7=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=8B=8D=E7=85=A7=E8=B6=85=E6=97=B6=E6=9C=BA=E5=88=B6?= =?UTF-8?q?=EF=BC=8C=E9=98=B2=E6=AD=A2=E6=AD=BB=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.Controls/CameraTemplate.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Rs.Controls/CameraTemplate.cs b/Rs.Controls/CameraTemplate.cs index a223bcd..ed58c58 100644 --- a/Rs.Controls/CameraTemplate.cs +++ b/Rs.Controls/CameraTemplate.cs @@ -319,7 +319,7 @@ namespace Rs.MotionPlat private void LoadImage() { Stopwatch time = new Stopwatch(); - + time.Start(); while (true && time.ElapsedMilliseconds < 3000) { if (ImageProcess.manualTriggerEvent.WaitOne(100)) @@ -339,10 +339,10 @@ namespace Rs.MotionPlat } } } - Task.Run(() => + if(time.ElapsedMilliseconds>3000) { - - }); + Msg.ShowError("grab fail"); + } } HObject imageReduced, partImage;