How many times DLL loaded for different Application?
-
hi all, I am new to DLLs. I have one doubt on dll loading. if two or more different applications use a same dll. how many instance of the dll will be loaded in memory. My Question is whether each application will has its own instance of the dll. or just one instance of the dll will be loaded and all applications have its mapping to the single instance. please clarfy me. thankyou in advance Mohamed Hasan S
-
hi all, I am new to DLLs. I have one doubt on dll loading. if two or more different applications use a same dll. how many instance of the dll will be loaded in memory. My Question is whether each application will has its own instance of the dll. or just one instance of the dll will be loaded and all applications have its mapping to the single instance. please clarfy me. thankyou in advance Mohamed Hasan S
The code will have one instance but data will have one instance for each appliction that is using the dll. You can use a shared data segment to share data between processes if you want, in this case this data will only have one instance. John
-
The code will have one instance but data will have one instance for each appliction that is using the dll. You can use a shared data segment to share data between processes if you want, in this case this data will only have one instance. John
thankyou jonh