Did anyone see this error? I'm not able to understand what code statement did it, as it isn't available in the stacktrace.
System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Reactive.PlatformServices.DefaultExceptionServices.Rethrow(Exception exception) at System.Reactive.AnonymousSafeObserver
1.OnError(Exception error) at System.Reactive.Concurrency.ObserveOn
1.?.OnErrorPosted(Object error) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Application is wpf C#.net using Reactive. There are multiple locations where Reactive is being used, and the collections are locked for read/write operations using lock as a synchronization mechanism.
Note: In the entire code, I'm not iterating through the subscriber list or modifying it as well.