Exception:Exception has been thrown by the target of an invocation.Collection was modified; enumeration operation may not execute.

报错信息

TargetInvocationException
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at Microsoft.Win32.SystemEvents.SystemEventInvokeInfo.InvokeCallback(Object arg)
   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)

InvalidOperationException
Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
   at R35iQcXc68TH6crx29v.hdpUWkXTLwuKVRhxPky.Reset()
   at UQaIgcXo3boif9k34gN.lOYee9XvKvfVf7WTVda.Stop()
   at ckNvHYXjLTIXZOOYvwE.xQYIM4XsQae5CucB8xt.h5tdWmTB2GJ()
   at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)
   at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
   at System.Windows.Threading.Dispatcher.Invoke(Action callback)
   at ckNvHYXjLTIXZOOYvwE.xQYIM4XsQae5CucB8xt.AXkdW4BOgLs()
   at Quicker.Domain.Services.SystemEventsWatcher.gPmxFGLCWJX(Object  , SessionSwitchEventArgs  ) 

解决方法

暂无解决方案。

相关信息
0 查看
2023-02-01 11:41
Quicker版本
版本 反馈次数