Exception:无法访问已释放的对象。 对象名:“【主库】The ObjectPool has been disposed, see: https://github.com/dotnetcore/FreeSql/discussions/1079”。无法访问已释放的对象。 对象名:“【主库】The ObjectPool has been disposed, see: https://github.com/dotnetcore/FreeSql/discussions/1079”。

报错信息 1
Exception: 无法访问已释放的对象。
对象名:“【主库】The ObjectPool has been disposed, see: https://github.com/dotnetcore/FreeSql/discussions/1079”。
StackTrace:
   在 FreeSql.Internal.CommonProvider.AdoProvider.LoggerException(IObjectPool`1 pool, PrepareCommandResult pc, Exception ex, DateTime dt, StringBuilder logtxt, Boolean isThrowException)
   在 FreeSql.Internal.CommonProvider.AdoProvider.ExecuteNonQuery(DbConnection connection, DbTransaction transaction, CommandType cmdType, String cmdText, Int32 cmdTimeout, Action`1 cmdAfterHandler, DbParameter[] cmdParms)
   在 FreeSql.Internal.CommonProvider.AdoProvider.ExecuteNonQuery(DbConnection connection, DbTransaction transaction, CommandType cmdType, String cmdText, Int32 cmdTimeout, DbParameter[] cmdParms)
   在 FreeSql.Internal.CommonProvider.DeleteProvider`1.<>c__DisplayClass5_0.<ExecuteAffrows>b__0(StringBuilder sb)
   在 FreeSql.Internal.CommonProvider.DeleteProvider`1.ToSqlFetch(Action`1 fetch)
   在 FreeSql.Internal.CommonProvider.DeleteProvider`1.ExecuteAffrows()
   在 FreeSql.DbSet`1.DbContextBatchRemove(EntityState[] dels)
   在 lambda_method(Closure , Object , Object[] )
   在 FreeSql.DbContext.<>c__DisplayClass67_0.<FlushCommand>g__dbsetBatch|0(String method)
   在 FreeSql.DbContext.<>c__DisplayClass67_0.<FlushCommand>g__funcDelete|1()
   在 FreeSql.DbContext.FlushCommand()
   在 FreeSql.RepositoryDbContext.SaveChanges()
   在 FreeSql.BaseRepository`1.Delete(TEntity entity)
   在 IntelliTools.View.Clipboard.ClipboardHistory.TheWindow_Closed(Object sender, EventArgs e)
   在 System.EventHandler.Invoke(Object sender, EventArgs e)
   在 System.Windows.Window.OnClosed(EventArgs e)
   在 System.Windows.Window.WmDestroy()
   在 System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

ObjectDisposedException: 无法访问已释放的对象。
对象名:“【主库】The ObjectPool has been disposed, see: https://github.com/dotnetcore/FreeSql/discussions/1079”。
--Message: 无法访问已释放的对象。
对象名:“【主库】The ObjectPool has been disposed, see: https://github.com/dotnetcore/FreeSql/discussions/1079”。
--ObjectName: 【主库】The ObjectPool has been disposed, see: https://github.com/dotnetcore/FreeSql/discussions/1079
StackTrace:
   在 FreeSql.Internal.ObjectPool.ObjectPool`1.GetFree(Boolean checkAvailable)
   在 FreeSql.Internal.ObjectPool.ObjectPool`1.Get(Nullable`1 timeout)
   在 FreeSql.Internal.CommonProvider.AdoProvider.ExecuteNonQuery(DbConnection connection, DbTransaction transaction, CommandType cmdType, String cmdText, Int32 cmdTimeout, Action`1 cmdAfterHandler, DbParameter[] cmdParms)

版本:1.42.24 2024-04-23 11:08 Microsoft Windows NT 10.0.22621.0