diff --git a/SGGL/FineUIPro.Web/common/PageBase.cs b/SGGL/FineUIPro.Web/common/PageBase.cs index ad3324fd..10a87a40 100644 --- a/SGGL/FineUIPro.Web/common/PageBase.cs +++ b/SGGL/FineUIPro.Web/common/PageBase.cs @@ -251,7 +251,9 @@ namespace FineUIPro.Web { if (BLL.Funs.DBList.ContainsKey(System.Threading.Thread.CurrentThread.ManagedThreadId)) { - BLL.Funs.DBList.Remove(System.Threading.Thread.CurrentThread.ManagedThreadId); + Model.SGGLDB db; + BLL.Funs.DBList.TryRemove(System.Threading.Thread.CurrentThread.ManagedThreadId,out db); + db.Dispose(); } }