LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call library function will not retain change of directory for the library.

I have created a call to a dll made in Visual C++. Everything works fine. I then configure the vi to call the a newer version of the library that is in another directory. The Call Library Function dialog box updates with the new path. I click the OK button. Then configure the vi again to very my change took and it is back to the original path to the library.

Why can I not change where to find the library? I am sure that I can make a new vi an input all the parameters again, but I have many parameters and calls to the same dll. Making new ones each time the location of the dll changes is not an option.

Thanks for your help.
0 Kudos
Message 1 of 2
(2,422 Views)
If you have more than one VI accessing the same DLL, then you can't change the DLL location without unloading all the other VIs first. This is because Windows will always look first for the DLL in memory, before even attempting to load it from disk. And if another VI makes use of that DLL it will be still kept in memory.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 2
(2,414 Views)