Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm writing a large application that uses many different .dll's. I've noticed MOST .dll's load initially on first program load.

 

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

 

I'm seeking advice on HOW to PREMATURELY load ALL REFERENCE .dll's 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 it's cache. Please help, thanks.

www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...