Hi,
We have encountered an issue where if we load up an external reference assembly into the script editor, a lock is placed on the file itself and is not released until we close the application.
In our example we load up an assembly in the TEMP directory, and when the Dispose method of our class is run we clear the assemblies e.g.
If mVBProjectAssembly IsNot Nothing Then mVBProjectAssembly.AssemblyReferences.Clear()
If mCSharpProjectAssembly IsNot Nothing Then mCSharpProjectAssembly.AssemblyReferences.Clear()
mVBProjectAssembly = Nothing
mCSharpProjectAssembly = Nothing
At this point if I try to delete the file in the TEMP directory it will say it there is a system lock on it, and this will stay until I close the applciation.
Now I believe this is by design by .net for security reasons, but can you confirm that there is nothing else we can do to release that lock?
Regards
Gavin