How do I release a .dll so that I can rebuild it?

Using (or providing) Microsoft.NET Classes
Post Reply
SMNR
Posts: 2
Joined: Wed Oct 24, 2018 7:09 am

How do I release a .dll so that I can rebuild it?

Post by SMNR »

If I load an external DLL using ⎕USING, I cannot rebuild the .dll file (in visual studio, say), since that file is in use. The only way I have been able to get around that is to close all instances of APL that are using that .dll, rebuild it, and then re-open it.

I have tried ⎕EX-ing the namespaces that it is loaded into, but that doesn't seem to work. I've even tried setting ⎕USING within each of those namespaces to '' before ⎕EX-ing, and that also also doesn't help.

Is there some way around this, or is restarting my only option?
User avatar
StefanoLanzavecchia
Posts: 113
Joined: Fri Oct 03, 2008 9:37 am

Re: How do I release a .dll so that I can rebuild it?

Post by StefanoLanzavecchia »

Try File > Close AppDomain to release all the .NET DLLs.
There is also an i-beam to obtain the same result: http://help.dyalog.com/17.0/Content/Lan ... _AppDomain

I hope it helps.
--
Stefano
SMNR
Posts: 2
Joined: Wed Oct 24, 2018 7:09 am

Re: How do I release a .dll so that I can rebuild it?

Post by SMNR »

Hi Stefano -

I tried that, and it didn't work as expected. It failed (exited with 1), but had released a lot of other .dlls that I did not want to.

Is there no way to release a single one?

Cheers,

Simon
Post Reply