I've got a code like this:
Some of our clients receiving "System.ArgumentNullException in System.Threading.Monitor.Enter" in the following code block:
Public Class CheckStuff
Private Shared SLock As New Object
Public Sub GetIt()
Synclock SLock
DoSomething()
End Synclock
End Sub
End Class
How can this be possible? Considering the SLock
is shared, never touched from anywhere else?