I have mechansim to load my dlls file as written below. I have need to know that let suppose i have a print form which call print.dll every times when it loads. If i open more than 3 forms than it means that three time i load same dll file. will that take more resources ? or slow down my application ? .. also is their any way to unload dll file ..so that i can put a check that if dll file is already loaded than unload it and reload it again to stop loading...
Thanks for help.
sample code
var DLL = Assembly.LoadFile(Application.StartupPath +"\\dlls\\"+Asemblyname+".dll");
var class1Type = DLL.GetType(Asemblyname+"."+classname);
ISecurity security = Activator.CreateInstance(class1Type);
Ali Muhammad