.TypeImports blocks DLL

Posts   
 
    
Nistech
User
Posts: 7
Joined: 11-Mar-2011
# Posted on: 18-Jul-2018 10:49:37   

Hello! I use .typeimports to import enumerations from .Net DLL's. If LLBLGEN Pro Designer is open, I cannot build the DLL, because the designer keep it open. Is this necessary or can you change this behavior?

Best regards Sylvio

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39747
Joined: 17-Aug-2003
# Posted on: 18-Jul-2018 12:50:05   

We use an assembly.loadfrom call to load the types of the assembly, which locks the dll indeed. we can't use 'for reflection only' as we have to make instances of the types at times.

We do have a workitem for creating a shadowcopy of the dll before reflection but it hasn't been implemented yet, so it's not defined when it will come. shadowcopy isn't that simple as the dll in question might reference other dlls in the same folder so we have to copy all dlls in the folder before the probing starts, which can be a lot. We can't use shadowcopy as implemented in the .NET CLR as that has limitations on where the dlls are located and startup time, so we have to implement it manually.

Frans Bouma | Lead developer LLBLGen Pro