Explorar o código

UI读取图像后关闭

@wang_qi0307 %!s(int64=4) %!d(string=hai) anos
pai
achega
45a05b9603
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      HOZProject/MeasureMsgDispose/MeasureMsgManage.cs

+ 2 - 1
HOZProject/MeasureMsgDispose/MeasureMsgManage.cs

@@ -93,7 +93,8 @@ namespace HOZProject
             {
                 byte[] b = new byte[file.Length];
                 file.Read(b, 0, b.Length);
-
+                file.Close();
+                file.Dispose();
                 MemoryStream stream = new MemoryStream(b);
                 return stream;
             }