EvtOpenLog API getting stuck on internal lock

DN 1 Reputation point
2022-02-11T21:58:59.97+00:00

We have the exact same problem that was seen and described here:

https://learn.microsoft.com/en-us/answers/questions/98127/using-evtquery-in-parallel-is-block-each-other.html

We are seeing this on Windows 10 October 2018 Update (version 1809).

The answer was very unsatisfactory - naturally a container needs to protect itself with a lock, but it is very poor code that locks a container and THEN makes network requests to get whatever will be put into the container. Locks shouldn't be held while network requests are made.

This seems like a bug in the Windows Event functions (at least EvtOpenLog from what we see here).

Are there any fixes? Work-arounds? Any way to probe and determine a call will lock before making it?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,412 questions
{count} votes