You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HRESULT.ToString() relies on a string cache that is not thread-safe, so when calling HRESULT.ToString() from different threads, an exception is triggered when updating this cache.
What code is involved
This can be easily triggered with the following snippet:
Describe the bug and how to reproduce
HRESULT.ToString()
relies on a string cache that is not thread-safe, so when callingHRESULT.ToString()
from different threads, an exception is triggered when updating this cache.What code is involved
This can be easily triggered with the following snippet:
Expected behavior
Two separate
HRESULT
objects, that exist separately on different threads, should not interfere with one another.Screenshots
Code that triggers exception:
Exception source:
The text was updated successfully, but these errors were encountered: