I have an app that generates around 200 enties in an log4net xml file
If I add a filter it crash with the message dialog: An unhandled exception occurred, and the application is terminating. Error: 'Collection was modified; enumeration operation may not execute.' For more information, see your Application log. Faulting application name: Log4View.exe, version: 1.6.2.1674, time stamp: 0x5f631881 Faulting module name: KERNELBASE.dll, version: 10.0.19041.906, time stamp: 0x2f2f77bf Exception code: 0xe0434352 Fault offset: 0x0000000000034b59 Faulting process id: 0x348c Faulting application start time: 0x01d7383d2986cc40 Faulting application path: C:\Program Files (x86)\Log4View V2\Log4View.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report Id: e196602e-ecba-4de1-8b3b-a3ed94455b66 Faulting package full name: Faulting package-relative application ID: Application: Log4View.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException at System.ThrowHelper.ThrowInvalidOperationException(System.ExceptionResource) at System.Collections.Generic.List`1+Enumerator[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNextRare() at Prosa.Log4View.MessageView.MessageViewVm.HandleRegexFilters(System.Collections.Generic.IList`1<Prosa.Log4View.Filter.RegExFilter>) at Prosa.Log4View.MessageView.MessageViewVm.ApplyFilter() at Prism.Events.EventSubscription`1+<>c__DisplayClass11_0[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<GetExecutionStrategy>b__0(System.Object[]) at Prism.Events.EventBase.InternalPublish(System.Object[]) at Prosa.Log4View.Filter.FilterListVm.RaiseFilterChanged(Prosa.Log4View.Interfaces.IViewFilter) at Prosa.Log4View.Filter.FilterListVm.AddFilter(Prosa.Log4View.Interfaces.IViewFilter, Boolean) at Prosa.Log4View.MessageView.MessageViewVm.ShowFilterEditor(Prosa.Log4View.Filter.MessageFilter) at Prosa.Log4View.MessageView.MessageViewVm.Filter() at DevExpress.Xpf.Bars.Native.CommandSourceHelper.Execute(System.Windows.Input.ICommand, System.Object, System.Windows.IInputElement) at DevExpress.Xpf.Bars.BarItem+<>c__DisplayClass390_0.<OnItemClick>b__0() at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) at System.Windows.Application.RunDispatcher(System.Object) at System.Windows.Application.RunInternal(System.Windows.Window) at Prosa.Log4View.Core.App.Main() |
Free forum by Nabble | Edit this page |