Exception:“System.Collections.Generic.EqualityComparer`1”的类型初始值设定项引发异常。引发类型为“System.OutOfMemoryException”的异常。

报错信息 1
TypeInitializationException: “System.Collections.Generic.EqualityComparer`1”的类型初始值设定项引发异常。
--TypeName: System.Collections.Generic.EqualityComparer`1
StackTrace:
   在 System.Collections.Generic.EqualityComparer`1.get_Default()
   在 System.Array.IndexOf[T](T[] array, T value, Int32 startIndex, Int32 count)
   在 System.Collections.Generic.List`1.IndexOf(T item)
   在 DynamicData.Cache.Internal.IndexCalculator`2.GetCurrentPosition(KeyValuePair`2 item)
   在 DynamicData.Cache.Internal.IndexCalculator`2.Calculate(IChangeSet`2 changes)
   在 DynamicData.Cache.Internal.Sort`2.Sorter.DoSort(SortReason sortReason, IChangeSet`2 changes)
   在 System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value)
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Reactive.Stubs.<>c.<.cctor>b__2_1(Exception ex)
   在 System.Reactive.ObserverBase`1.OnError(Exception error)
   在 System.Reactive.AutoDetachObserver`1.OnErrorCore(Exception exception)
   在 System.Reactive.ObserverBase`1.OnError(Exception error)
   在 System.Reactive.Sink`1.ForwardOnError(Exception error)
   在 System.Reactive.Sink`1.ForwardOnError(Exception error)
   在 System.Reactive.Concurrency.Synchronize`1._.OnError(Exception error)
   在 System.Reactive.AutoDetachObserver`1.OnErrorCore(Exception exception)
   在 System.Reactive.ObserverBase`1.OnError(Exception error)
   在 System.Reactive.Sink`1.ForwardOnError(Exception error)
   在 System.Reactive.Sink`1.ForwardOnError(Exception error)
   在 System.Reactive.Sink`1.ForwardOnError(Exception error)
   在 System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value)
   在 System.Reactive.AutoDetachObserver`1.OnNextCore(T value)
   在 System.Reactive.ObserverBase`1.OnNext(T value)
   在 System.Reactive.AutoDetachObserver`1.OnNextCore(T value)
   在 System.Reactive.ObserverBase`1.OnNext(T value)
   在 System.Reactive.Linq.ObservableImpl.Where`1.Predicate._.OnNext(TSource value)
   在 System.Reactive.Subjects.Subject`1.OnNext(T value)
   在 DynamicData.ObservableCache`2.InvokeNext(ChangeSet`2 changes)
   在 DynamicData.ObservableCache`2.UpdateFromSource(Action`1 updateAction)
   在 BetterClip.Service.Windows.ActiveWindowService.Update(IntPtr hWND)
   在 BetterClip.Service.Windows.ActiveWindowService.Hook_ForegroundWindowChanged(Object sender, ForegroundWindowChangedEventArgs e)
   在 BetterClip.Win32.ActiveWindowHook.WinEventProc(HWINEVENTHOOK hWinEventHook, UInt32 event, HWND hwnd, Int32 idObject, Int32 idChild, UInt32 idEventThread, UInt32 dwmsEventTime)

OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。
StackTrace:
   在 System.Collections.Generic.EqualityComparer`1.CreateComparer()
   在 System.Collections.Generic.EqualityComparer`1..cctor()

版本:1.44.14 2025-09-02 06:03 Microsoft Windows NT 10.0.19045.0