How To Release After Assembly.CreateInstance?

VPiattelli

Newcomer
Joined
Aug 9, 2004
Messages
4
I'm using the code below to create an instance of a particular type, defined in the assemblyPath file.

Code:
Dim objDLL As [Assembly]
Dim objPlugin As Object

objDLL = [Assembly].LoadFrom(assemblyPath)
objPlugin = objDLL.CreateInstance(typeName)

I am trying to change my application to be able to overwrite the .dll at assemblyPath without restarting. This code puts the .dll into use, so I can't overwrite the file after this stage of execution. Is there any way I can release assemblyPath so I can overwrite it without restarting my app?

Thanks in advance.
 
Back
Top