Hello,
I posted this question 2 weeks ago but I didn't get any solution, so I'm
trying to make it easier.
I'm using interface to manage plugins and I would like to instantiate 2
objects from the same assembly.
Using the following code, I don't get 2 objects but 2 references to the
same object.
Dim pObhHandle1 As ObjectHandle =
Activator.CreateInstanceFrom(AssemblyPath, ClassNameSpace)
Dim pIpnPlugin1 As My_Plugin = CType(pObhHandle1.Unwrap, Plugin_Interface)
Dim pObhHandle2 As ObjectHandle =
Activator.CreateInstanceFrom(AssemblyPath, ClassNameSpace)
Dim pIpnPlugin2 As My_Plugin = CType(pObhHandle2.Unwrap, Plugin_Interface)
Please help me....
Vittorio Pavesi
------------------------
http://www.vittorio.tk