09-19-2005 03:13 AM
09-21-2005 03:32 AM
Hi Lasse
I have tried to reproduce your problem by using some VI's from vi.lib in my DLL which I reused in my VI but it does not give the error you have been seeing.
Try removing the DLL from the VI and reopen the VI. Make sure it finds the subVI's from vi.lib. Then force a compile on the VI by pressing ctrl+shift and the run button in the VI. Make sure to save the VI. Insert the DLL in the VI again and see what happens.
The DLL and EXE files will include all subVI's in a VI including the subVI's from vi.lib. If the subVI's are linked to the VI's in vi.lib you should not see that problem.
You could eventually reorder the search paths given in LabVIEW, that might help too, knowing to look in the vi.lib before searching any other place. But not sure since it might look to load the DLL before the other subVI's.
Regards
Mohadjer
NI-DK
09-21-2005 08:01 AM
Thanks. I'll try that.
I have previously had some success with removing/deleting the DLL, opening the EXE project and saving all the VIs, and shutting down again. This would solve the first of the inconveniences that I mentioned, but I still got the option dialog to save the VIs encapsuled inside the DLL upon exit. This seems to only happen after I've modified the EXE project, though.
And it'll only work for a limited time. Suddenly the dialogs upon load reappears...
Best Regards
Lasse