DLL loaded twice
Hi,
I was looking at DLLS used by a process using ProcessSpy and found that the process has loaded two DLLs for few of the system dlls like Systsem.Drawing.Dll, System.Windows.Forms.Dll etc.
For one of these DLLs the version is 0.0.0.0 and the other one has a valid version. Unfortunately, I can't add a snapshot of the window here. What I am wondering is, whether its pretty common to have this behavior or something is wrong in the taks, the way it is loading DLL.?
Thanks,
-Brajesh
Your guess might be right, as I see that the version 0.0.0.0 is being loaded from
C:\windows\assembly\nativeimages1_v1.1.4322\system.windows.forms\1.0.5000.0__b77a5c561934e089_fa580ca7
and the other version is being loaded from C:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089
But, I thought, if NGEN loads it for faster processing, then it
shouldn't be loaded again. I am trying to figure out, if there is a
problem with the way DLLs are laoded for this app or something like
this is normal.
Thanks,
-Brajesh
Thanks for your answer!
I have just one more question. Does it mean that if we don't use
reflection in the code, then the second DLL will not be loaded at all
or it would still be loaded irrespective of the fact, where reflection
has been used or not ?
-Brajesh