Dynamically loading DLLs

D

David McCallum

I'm not infront of my computer just now, but I seem to remember when my app
is being executed the output console shows all the DLLs being loaded.

Is there anyway to load these DLLs as and when required?

TIA

David McCallum
 
M

Marc Gravell

Referenced .NET dlls *are* loaded (by Fusion) when first required...
you have to go out of your way to pre-load them. Note that a fair
chunk will be needed just to get the ball rolling (so to speak).

Marc
 
G

Guest

You can remove the references to your assemblies (as Marc indicated) and load
them dynamically as needed with various methods supplied in the Framework,
but unless there is a very specific reason why you want/ need to do this, it
is better to accept the built-in behavior by having project-defined
references. It's a lot simpler for sure.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top