Commit 5fb7556d 张士柳

1 个父辈 7ca22226
......@@ -782,6 +782,7 @@ namespace eyemLib_Sharp
private static extern int eyemAOIForTSAV(EyemImage tpRefImg, EyemImage tpNextImg, IntPtr tpArray, int iArraySize);
#endregion
#region 日志功能
// 日志回调
public delegate void TCallBack(string msg);
public static TCallBack sld = new TCallBack(TLogCallback);
......@@ -800,16 +801,19 @@ namespace eyemLib_Sharp
OnNewLogCallback += new TCallBack(EyemLib_OnNewLogCallback);
}
private static void EyemLib_OnNewLogCallback(string msg)
public static void Free()
{
Console.WriteLine(msg);
setLogCallback(null); sld = null;
}
public static void Free()
//记录日志
private static void EyemLib_OnNewLogCallback(string msg)
{
setLogCallback(null); sld = null;
Console.WriteLine(msg);
}
#endregion
public static void eyemReadImageTool(string fileName)
{
Stopwatch sw = new Stopwatch();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!