LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Releasing a dll

I've noticed that when I load a dll using a call library function node LabVIEW holds that dll in memory until I exit LabVIEW. Is there a way to release that dll such that I could call and close it programmatically?
mcnearymw
0 Kudos
Message 1 of 4
(3,470 Views)
DLLs are loaded when a VI is opened and unloaded when the VI is closed and leaves memory. The handling of DLLs is internal to LabVIEW and there is no way to perform this operation programmatically.

More information regarding the loading/unloading of DLLs in LabVIEW can be found:
KB 1YSCOKXL: When Does LabVIEW Load a DLL Called from a Call Library Function?

Thanks!
Kileen C.
NI
0 Kudos
Message 2 of 4
(3,470 Views)
DLLs are loaded when a VI is opened and unloaded when the VI is closed
and leaves memory. The handling of DLLs is internal to LabVIEW and
there is no way to perform this operation programmatically.

More information regarding the loading/unloading of DLLs in LabVIEW
can be found:

href="http://digital.ni.com/public.nsf/websearch/02E1DE2A53AC45708625690D006733BB?OpenDocument">KB
1Y...


Thanks!
Kileen C.
NI
0 Kudos
Message 3 of 4
(3,470 Views)
Hi,

You can unload dll's, but only if you loaded them yourself (with
LoadLibrary).

The problem then becomes you have to call a function (having only a pointer
to the function). This can be solved with external code...

I have a library (used to create "universal" callback functions) that can
call a function with arbitrary number of parameters. Like always with dlls,
the number of parameters and the type of each parameter has to be correct,
or LV will crash.

Regards,

Wiebe.




"mmcneary" wrote in message
news:50650000000800000044F80000-1079395200000@exchange.ni.com...
> I've noticed that when I load a dll using a call library function node
> LabVIEW holds that dll in memory until I exit LabVIEW. Is there a way
> to release that dll such that I c
ould call and close it
> programmatically?
0 Kudos
Message 4 of 4
(3,470 Views)