Aha , now we are getting somewhere :-)
I asumed we were discussing resources in terms of memory , and now i
understand we are talking about IO locks
I'd like to know if there's a workable solution to this problem too...
I guess there is , you could dynamicly load and unload your objects i guess
this would lock and unlock the file
We are thus talking about "Reflection at runtime"
a simple example ? : ( i am gonna write this on a comp without dev
environment , just out of my plain head so excuse me for anny typo`s :- )
Dim ObjType as Type
=Assembly.getexecutingAssembly().Gettype("assembly name.objectname")
Dim Obj as object = Activator.CreateInstance(Type)
obj now holds an instance of the class
please note that this is a sort of equivalant to "late binding" , so the
execution speed will be slower as a direct referenced assembly
regards
Michel Posseth [MCP]
"Oenone" <oe****@nowhere.comschreef in bericht
news:eq**************@TK2MSFTNGP03.phx.gbl...
Michel Posseth [MCP] wrote:
>How did you discovered that the resources are not free after usage ??
Presumably because the DLL file on disk is locked. We have the same issue
here, the application must be closed before the lock is released. This is
only a problem in WinForms based apps, due to the excellent DLL shadowing
feature in ASP.NET.
I'd like to know if there's a workable solution to this problem too...
--
(O)enone