Referencing DLLS

Joined
Nov 22, 2005
Messages
6
Location
uk
Programming Experience
1-3
I have a project (startup) that references a dll (test.dll)

Basically when the project starts it opens the startup form and creates a instance of the dll so :

Dim Test as new testdll and so on.....

then it opens a form in test.dll (so 2 forms so far.....)

The problem I am having is that I want to be able to rollout new versions of test.dll while the startup is running, so on the startup form we put a button that closes the second form and clears the object reference (bit like asp.net):

test=nothing

and it will then let us rename test.dll and drop another in....

then when we try too create a new instance of test and open it, it SIMPLE USES THE OLD ONE! but if u close the whole app then open it again it gets the new version . I have looked at the GC but still no joy - any ideas?
 
The library is loaded into memory when the app is started. You'd have to manually unload it and then load the new version. I've never loaded modules dynamically so I don't know the details but that's the gist of it I think.
 
Back
Top