A loaded DLL in a memory
Posted: 18 Dec 2010, 23:46
				
				the first, Sorry for my bad english-knowing.
In programming languages there are two import-possible: (import: call a DLL function)
- Static import: When the application start, automatically loaded the DLL, and when the application stopped automatically unload the DLL.
- Dynamic import: Using the Windows's functions: LoadLibrary(), FreeLibrary(), GetProcAddress(), GetProcedureAddress() etc..
I have read tutorials, and i learned: The DLL load into memory once when a application call the DLL. It means: More program uses one DLL. But, I tested and I think this is not true. And I lokked for this, and other tutorials have written: When a DLL call, the DLL load into the application-memory-space, so the DLL is not in the memory once.
But is a problem, because if there are many applications uses the DLL, the result-memory-size is bigger as if I link the DLL's function into application.
So what is a true, and Can I call a DLL's function, to the DLL is be in the memory once?
Thanks, and sorry for my bad English-knowing
			In programming languages there are two import-possible: (import: call a DLL function)
- Static import: When the application start, automatically loaded the DLL, and when the application stopped automatically unload the DLL.
- Dynamic import: Using the Windows's functions: LoadLibrary(), FreeLibrary(), GetProcAddress(), GetProcedureAddress() etc..
I have read tutorials, and i learned: The DLL load into memory once when a application call the DLL. It means: More program uses one DLL. But, I tested and I think this is not true. And I lokked for this, and other tutorials have written: When a DLL call, the DLL load into the application-memory-space, so the DLL is not in the memory once.
But is a problem, because if there are many applications uses the DLL, the result-memory-size is bigger as if I link the DLL's function into application.
So what is a true, and Can I call a DLL's function, to the DLL is be in the memory once?
Thanks, and sorry for my bad English-knowing