wokhan / WFN

Windows Firewall Notifier extends the default Windows embedded firewall by allowing to handle and notify about outgoing connections, offers real time connections monitoring, connections map, bandwidth usage monitoring and more...
GNU General Public License v3.0
600 stars 95 forks source link

EventViewer: InvalidOperationException (sporadic) #91

Open harrwiss opened 4 years ago

harrwiss commented 4 years ago

Debug log only shows: "Exception thrown: 'System.InvalidOperationException' in System.Diagnostics.EventLog.dll"

When setting a breakpoint on the exception I get this (should be handled):

System.InvalidOperationException HResult=0x80131509 Message=Cannot read log entry number 7858563. The event log may be corrupt. Source=System.Diagnostics.EventLog StackTrace: at System.Diagnostics.EventLogInternal.GetEntryWithOldest(Int32 index)

Inner Exception 1: Win32Exception: The parameter is incorrect.

wokhan commented 4 years ago

Hi @harrwiss, looks like there is an internal cache to link the index and the internal ID. If data changed in the event log, the cache probably is missing an entry while it shouldn't => this could be a .Net issue... Will have to double check their code. Right now I cannot, I'm out for a week (winter sports.... except that they closed everything starting today haha).

wokhan commented 4 years ago

Well, might check it sooner than expected after all... maybe in the following days.

harrwiss commented 4 years ago

So you're back home again? From today on everything not essential is closing as well here in Zurich 🤒

wokhan commented 4 years ago

Nope, still in the Alps, but everything's indeed closed so I cannot do as much outside as I would... Hence some activity on github ;-)