Skip to content

Refreshing security log throws exception if it is already refreshing #159

@UltimateEvil

Description

@UltimateEvil

Click on security log and spam the refresh a bit.

"Exception of type 'System.ExecutionEngineException' was thrown."

Specifically in

StartHandlingSecurityLogEvents(true)
...
                dataView = CollectionViewSource.GetDefaultView(EventsReader.Entries);
                gridLog.ItemsSource = dataView;

Upon changing to

                dataView = CollectionViewSource.GetDefaultView(EventsReader.Entries);
                gridLog.ItemsSource = null;
                gridLog.ItemsSource = dataView;

I instead got an exception
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

  • it understandably caused issues in other parts of the code which depended in it being initialised.

The issue seems to only happen before the numebr of new entries gets updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions