vb.net - Reflection and loading of dlls -
i trying create generc vb.net import program loading in dlls usings method cant figure out how unload dll once finished . can hangs in memory , of course cant see in task manager nead way close dll after
public shared function createinstance(byval plugin availableplugin) object dim objdll [assembly] dim objplugin object try 'load dll objdll = [assembly].loadfrom(plugin.assemblypath) 'create , return class instance objplugin = objdll.createinstance(plugin.classname) catch e exception return nothing end try return objplugin end function
Comments
Post a Comment