Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-HCSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1ae87798
由
LN
编写于
2021-06-08 16:04:05 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
识别有料dll更新
1 个父辈
3708de31
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
0 行删除
dll/camera/Asa.Camera.VisionLib.dll
source/DeviceLibrary/acSingleStore/BoxBean.cs
source/DeviceLibrary/acSingleStore/StoreBean.cs
dll/camera/Asa.Camera.VisionLib.dll
查看文件 @
1ae8779
此文件类型无法预览
source/DeviceLibrary/acSingleStore/BoxBean.cs
查看文件 @
1ae8779
...
@@ -6,6 +6,7 @@ using System;
...
@@ -6,6 +6,7 @@ using System;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Diagnostics
;
using
System.Diagnostics
;
using
System.Linq
;
using
System.Linq
;
using
System.Runtime.ExceptionServices
;
using
System.Text
;
using
System.Text
;
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
...
@@ -90,6 +91,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -90,6 +91,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
/// </summary>
/// <param name="exist"></param>
/// <param name="exist"></param>
/// <returns>true=有料,false=无料</returns>
/// <returns>true=有料,false=无料</returns>
[
HandleProcessCorruptedStateExceptions
]
public
bool
VisionComp
(
out
Dictionary
<
string
,
bool
>
exist
)
public
bool
VisionComp
(
out
Dictionary
<
string
,
bool
>
exist
)
{
{
bool
returnResult
=
false
;
bool
returnResult
=
false
;
...
@@ -129,6 +131,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -129,6 +131,10 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
}
}
catch
(
AccessViolationException
e
)
{
LogUtil
.
error
(
Name
+
"VisionLibCom 出错 AccessViolationException:"
+
e
.
ToString
());
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
Name
+
"VisionLibCom 出错:"
+
ex
.
ToString
());
LogUtil
.
error
(
Name
+
"VisionLibCom 出错:"
+
ex
.
ToString
());
...
...
source/DeviceLibrary/acSingleStore/StoreBean.cs
查看文件 @
1ae8779
...
@@ -140,6 +140,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -140,6 +140,10 @@ namespace OnlineStore.DeviceLibrary
try
try
{
{
string
vfile
=
Application
.
StartupPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
VisionConfigFile
);
string
vfile
=
Application
.
StartupPath
+
ConfigAppSettings
.
GetValue
(
Setting_Init
.
VisionConfigFile
);
if
(
String
.
IsNullOrEmpty
(
vfile
))
{
vfile
=
@"\Camera.json"
;
}
if
(!
String
.
IsNullOrEmpty
(
vfile
))
if
(!
String
.
IsNullOrEmpty
(
vfile
))
{
{
vision
=
new
Asa
.
Camera
.
VisionLib
(
vfile
,
"RollingLogFileAppender"
);
vision
=
new
Asa
.
Camera
.
VisionLib
(
vfile
,
"RollingLogFileAppender"
);
...
@@ -160,6 +164,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -160,6 +164,7 @@ namespace OnlineStore.DeviceLibrary
{
{
if
(
vision
!=
null
)
if
(
vision
!=
null
)
{
{
vision
.
Dispose
();
vision
.
Close
();
vision
.
Close
();
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论