LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When does an external dll get unloaded ?

Here is one for the LabVIEW masters:

Does a dll called by the LabVIEW "call libary" vi remain loaded until
LabVIEW is closed or does the vi automagically unload the dll after the call
?

I wish to set up some shared memory buffers which can only persist while the
dll is loaded - (using VC++ CreateFileMapping and MapViewOfFile
functionality).

Thanks for reading..

Chris
0 Kudos
Message 1 of 2
(2,704 Views)
> Does a dll called by the LabVIEW "call libary" vi remain loaded until
> LabVIEW is closed or does the vi automagically unload the dll after the call
> ?
>
> I wish to set up some shared memory buffers which can only persist while the
> dll is loaded - (using VC++ CreateFileMapping and MapViewOfFile
> functionality).
>

The DLL will be loaded when the VI is opened and unloaded when the VI is
closed and leaves memory. You can use the hierarchy window and type
ahead if necessary to determine if it is still in memory.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,704 Views)