admin管理员组文章数量:1355836
When you have multiple NGENed copies of the same dll (in different versions) in your system, you will have multiple copies of the ngened version in your ngen folder e.g. C:\Windows\assembly\NativeImages_v4.0.30319_64\
It appears that if I launch one version of my application, then the runtime will open ALL the ni.dll files for ALL the versions of all the assemblies of my application? Looking at procmon or perfview I can see
FileOpenOrCreate C:\Windows\assembly\NativeImages_v4.0.30319_64\My.Dll\201a7c1daf8c4fdbee16491b0646f281\My.Dll.ni.dll FileOpenOrCreate C:\Windows\assembly\NativeImages_v4.0.30319_64\My.Dll\236cfbe44c678200128651bddf751e51\My.Dll.ni.dll
.. and so on, for as many versions as exist on the system. The problem this causes is when Antivirus on the system will intercept these calls and stall the Framework for 10-15ms for each FileOpenOrCreate. What causes this? Why can't the app use the checksum to identify exactly which ni.dll it needs?
本文标签:
版权声明:本文标题:.net - Why is my app reading all the ni.dll files in the NativeImages folder? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743959685a2568790.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论