Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3a49ef7e
由
几米阳光
编写于
2019-02-21 14:58:53 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
扫码增加异常捕获
1 个父辈
6cb03ded
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
17 行增加
和
7 行删除
source/Common/util/LogUtil.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/halcon/CodeManager.cs
source/Common/util/LogUtil.cs
查看文件 @
3a49ef7
...
@@ -100,7 +100,7 @@ namespace OnlineStore.Common
...
@@ -100,7 +100,7 @@ namespace OnlineStore.Common
}
}
public
static
void
error
(
ILog
log
,
string
errorMsg
)
public
static
void
error
(
ILog
log
,
string
errorMsg
)
{
{
if
(!
lasErrorLogList
.
Contains
(
errorMsg
))
//
if (!lasErrorLogList.Contains(errorMsg))
{
{
log
.
Error
(
log
.
Logger
.
Name
+
" - "
+
errorMsg
);
log
.
Error
(
log
.
Logger
.
Name
+
" - "
+
errorMsg
);
if
(
logBox
==
null
)
if
(
logBox
==
null
)
...
@@ -109,11 +109,11 @@ namespace OnlineStore.Common
...
@@ -109,11 +109,11 @@ namespace OnlineStore.Common
}
}
AddToBox
(
errorMsg
,
Color
.
Red
);
AddToBox
(
errorMsg
,
Color
.
Red
);
}
}
lasErrorLogList
.
Add
(
errorMsg
);
//
lasErrorLogList.Add(errorMsg);
if
(
lasErrorLogList
.
Count
>
errCount
)
//
if (lasErrorLogList.Count > errCount)
{
//
{
lasErrorLogList
.
RemoveAt
(
0
);
//
lasErrorLogList.RemoveAt(0);
}
//
}
}
}
private
static
void
AddToBox
(
string
msg
,
Color
color
)
private
static
void
AddToBox
(
string
msg
,
Color
color
)
{
{
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
3a49ef7
...
@@ -217,6 +217,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -217,6 +217,8 @@ namespace OnlineStore.DeviceLibrary
#
region
原点返回和复位处理
#
region
原点返回和复位处理
private
void
ReturnHome
()
private
void
ReturnHome
()
{
{
isNoAirCheck
=
false
;
isInSuddenDown
=
false
;
WarnMsg
=
""
;
WarnMsg
=
""
;
CurrInOutACount
=
0
;
CurrInOutACount
=
0
;
CurrInOutCount
=
0
;
CurrInOutCount
=
0
;
...
...
source/DeviceLibrary/halcon/CodeManager.cs
查看文件 @
3a49ef7
...
@@ -6,6 +6,7 @@ using System.Collections.Generic;
...
@@ -6,6 +6,7 @@ using System.Collections.Generic;
using
System.Drawing
;
using
System.Drawing
;
using
System.IO
;
using
System.IO
;
using
System.Linq
;
using
System.Linq
;
using
System.Runtime.ExceptionServices
;
using
System.Text
;
using
System.Text
;
using
System.Windows.Forms
;
using
System.Windows.Forms
;
...
@@ -90,7 +91,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -90,7 +91,8 @@ namespace OnlineStore.DeviceLibrary
}
}
return
bitm
;
return
bitm
;
}
}
[
HandleProcessCorruptedStateExceptions
]
public
static
List
<
string
>
CameraScan
(
)
public
static
List
<
string
>
CameraScan
(
)
{
{
List
<
string
>
codeList
=
new
List
<
string
>();
List
<
string
>
codeList
=
new
List
<
string
>();
...
@@ -123,7 +125,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -123,7 +125,13 @@ namespace OnlineStore.DeviceLibrary
}
}
allCodeList
.
AddRange
(
cc
);
allCodeList
.
AddRange
(
cc
);
}
}
bitmap
.
Dispose
();
}
}
}
catch
(
AccessViolationException
e
)
{
LogUtil
.
error
(
"扫码出现AccessViolationException异常:"
+
e
.
ToString
());
GC
.
Collect
();
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论