Click here to Skip to main content
15,910,661 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Howdy

I have a program which calling some APIs.

From debug window, I found that it will load and unload the dll frequently,is there a way to keep these dll in memory to eliminate the loading/unloading effect?


I use loadlibrary("somedll.dll"), but it doesn't help. I can still see the dll is load/unload during debug.


Any help will be greatly appreciated.


C++,VS2008
Posted

1 solution

load and unload the dll for your optimal use. Other load/unload action are only reference counting as dlls are loaded only once per process.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900