LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

loading dll

Hello,

I have created a dll with visual.net to work with a camera. If called this dll not at the beginning of the execution i have the message "unable to load xxx.dll". But if i called this dll at the beginning the execution, i do not have this error message, and then i can call it when i want inside the vi. Also when i create a vi who called juste this dll, i dont not have any problem,

sincerely,
0 Kudos
Message 1 of 2
(2,929 Views)
This is probably a search path issue. You seem to change the working directory during the course of your code, befor calling the DLL.
You've found the simplest solution yourself: just call that DLL once at startup. This way it is loaded in memory and ist kept there until its caller is released. Other calls use the very same DLL, if one with its name is already loaded into memory.
Another possibel solution is to provide the full and absolute path to the DLL whenever you call it (or at least at the fisrt call).
Greetings from Germany!
-- Uwe
Message 2 of 2
(2,908 Views)