dynamic loaded dll question
Posted on 2009-07-04
each time I'm loading a new dll (containing a winform) dynamically to my main app, the previously loaded one (if there was one) isn't unloaded. the dlls are loaded dynamically when I select a button and their winforms are automatically shown. when I select another button, there is another dll loaded and another winform shown, the last should be closed. when I do this several times, the application freezes.
why is this? should I somehow unload the dll before loading a new one?
hope I was clear enough :)