Exception:Collection was modified after the enumerator was instantiated.

报错信息 1
InvalidOperationException: Collection was modified after the enumerator was instantiated.
StackTrace:
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Queue`1.Enumerator.MoveNext()
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
   at FreeSql.DbContext.FlushCommand()
   at FreeSql.DbSet`1.DbContextFlushCommand()
   at FreeSql.DbSet`1.AddPriv(TEntity data, Boolean isCheck)
   at FreeSql.DbSet`1.Add(TEntity data)
   at FreeSql.BaseRepository`1.Insert(TEntity entity)
   at IntelliTools.Domain.MyClipboard.ClipItem.CreateAndSave(ClipItemBase item)
   at IntelliTools.View.BackgroundWindow.CollectClipItem(ClipItemBase item)
   at IntelliTools.View.BackgroundWindow.LasyOnClipboardChanged()
   at IntelliTools.View.BackgroundWindow.Timer_Tick(Object sender, EventArgs e)
   at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

版本:1.42.24 2024-12-16 09:33 Microsoft Windows NT 6.1.7601 Service Pack 1