Commit 7dfece50 贾鹏旭

添加Dispose()方法

1 个父辈 76083e4f
正在显示 1 个修改的文件 包含 17 行增加0 行删除
...@@ -3,6 +3,7 @@ using System.Collections.Generic; ...@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.Drawing.Drawing2D; using System.Drawing.Drawing2D;
using System.Linq; using System.Linq;
using System.Runtime.CompilerServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
...@@ -64,5 +65,21 @@ namespace AOI ...@@ -64,5 +65,21 @@ namespace AOI
/// </summary> /// </summary>
public object checkData; public object checkData;
public void Dispose()
{
if (standardRoiImage!=null)
{
standardRoiImage.Dispose();
}
if (currentRoiImage != null)
{
currentRoiImage.Dispose();
}
if (roiPath != null)
{
roiPath.Dispose();
}
}
} }
} }
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!