Browse Source

UI读取图像后关闭

@wang_qi0307 4 năm trước cách đây
mục cha
commit
45a05b9603
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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;
             }