|
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|
|
using System.Diagnostics;
|
|
|
using System.IO;
|
|
|
using System.Linq;
|
|
|
+using System.Net.Security;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
using System.Windows;
|
|
@@ -151,7 +152,7 @@ namespace MECF.Framework.Common.SCCore
|
|
|
{
|
|
|
var _sc_stream = File.Open(xmlFile, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.Read);
|
|
|
xml.Load(_sc_stream);
|
|
|
-
|
|
|
+ _sc_stream.Close();
|
|
|
XmlNodeList nodeConfigs = xml.SelectNodes("root/configs");
|
|
|
foreach (XmlElement nodeConfig in nodeConfigs)
|
|
|
{
|
|
@@ -241,7 +242,7 @@ namespace MECF.Framework.Common.SCCore
|
|
|
XmlDocument xmlData = new XmlDocument();
|
|
|
var _sc_stream = File.Open(_scDataFile, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.Read);
|
|
|
xmlData.Load(_sc_stream);
|
|
|
-
|
|
|
+ _sc_stream.Close();
|
|
|
XmlNodeList scdatas = xmlData.SelectNodes("root/scdata");
|
|
|
foreach (XmlElement nodedata in scdatas)
|
|
|
{
|