关于.NET Process AppDomain NativeDll的问题!
FiLng 2003-07-22 04:18:22 If an assembly is used by multiple domains in a process, the assembly's code (but not its data) can be shared by all domains referencing the assembly. This reduces the amount of memory used at run time. This method of sharing an assembly's code is similar to the way in which the Microsoft Win32 API LoadLibrary shares code pages among processes that reference the same DLL. An assembly is said to be domain-neutral when its code can be shared by all domains in the process. The runtime host decides whether to load assemblies as domain-neutral when it loads the runtime into a process.
我的问题是:
如果我的.NET Process有两个AppDomain,其中一个AppDomain里的对象使用P/Invoke调用一个Native Dll里的函数,那这个Native Dll被加载到哪里?
调用者所在的AppDomain?
两个AppDomain之外与clr在同一unmanged区域?