LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Function not found in Library only after Close VI - Open VI

Hi,
We wrote subVI's for all exported functions of a dll written in Borland C++. Then a test.vi was implemented which uses these dll function. Everything runs perfectly, as long as we don't Close the vi and reopen it from the LabView main menu. If we do this the broken run arrow butten is shown and the first error message listed is the Function not found in Library error.
If we use Exit to leave LabView and then restart the test.vi, everything is ok.
Please let me know if you know a solution. Thanks in advance.
0 Kudos
Message 1 of 2
(2,515 Views)
The Function not found error is thrown when the OS can't provide the pointer to the function in the library to LabVIEW for some reason. For more information and common solutions see:
http://digital.ni.com/public.nsf/websearch/44E40ACF1644DB77862562990054D672?OpenDocument

The only reason I can think of why the first time it works correctly is that the DLL is not correctly clean-up by the close functions. Thus causing a second request for the pointer to fail due to this. (closing LabVIEW will remove the DLL form memory and thus probably clearing the error).

Hope this Helps
Kind regards,

Karsten
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,497 Views)