Hi all, Do you noticed a difference about dll delay-load for assembly? We know that assembly is delay-loaded by default, and it is configurable for VC. But there is a difference on when will it loaded... in VC, the dll will be loaded only when code reached exactly the line that need another dll. in .Net, it will load once it get into the method that calls another dll's code. ex: Dll1.dll class Class1 { void Fun() { int dummy = 0; Dll2.Class1.Fun(); } } Dll2.dll class Class1 { void Fun(){} } For VC, it load Dll2 when code reached "Dll2.Class1.Fun();" For .Net, it load Dll2 when code reached "int dummy = 0;" any one can tell me why there is such a difference? thanks in advance.
do it.