|
Cache[expression] = expr; |
I had some crash in this file, when I load two file in parallel, betting a null ptr exception in the dictionary.add every variables are valid, I guess the dictionary is resizing while we are adding.
not sure if ThreadStaticAttribute or ConcurrentDictionary will be the best fix for this!
Mvp.Xml.NetStandard/library/Mvp.Xml/Common/XPath/XPathCache.cs
Line 32 in ffaa727
I had some crash in this file, when I load two file in parallel, betting a null ptr exception in the dictionary.add every variables are valid, I guess the dictionary is resizing while we are adding.
not sure if ThreadStaticAttribute or ConcurrentDictionary will be the best fix for this!