.dll load is slow - 1/2 through program exe

Drstein99

Well-known member
Joined
Sep 26, 2003
Messages
283
Location
Audubon, Nj
Im writing a large application that uses many different .dlls. Ive noticed MOST .dlls load initially on first program load.

There are a few occaisions where the OTHER .dlls load WHEN those functions are called - sometimes the users go into special dialogs that trigger the functions on those .dlls - which naturally, cause the system to hesitate for the first time while it loads from disk into cache memory.

Im seeking advice on HOW to PREMATURELY load ALL REFERENCE .dlls into memory AT initial load of the application; so that when users click stuff for the first time, it doesnt hesitate seeking disk activity and runs from its cache. Please help, thanks.
 
If the delay is really that big of a problem you could simply create an instance of a class from each of the DLLs when your app loads (just chuck splash screen or similar up), this will cause each dll to be loaded...
Doing this will result in all the dlls getting loaded and slowing the initial launch down despite the fact the user may never even need them in memory.
 
Back
Top