01-25-2019 09:24 AM
I’m having an issue with loading an ‘external assembly’.
I'm using LabVIEW 2018 (32-bit) on a Windows 10 computer (64-bit), and up to date OmniDriver package downloaded from Ocean Optics (version 2.56).
Description of issue:
When I open LabVIEW and click on the simple .vi (just opening and closing the spectrometers) that uses the NETOmnidriver-NET40.dll I get the following error message :
+++
LabVIEW: (Hex 0x494) A .NET exception occurred in an external assembly. For information about correcting this error, copy the following exception (in bold), and search the Microsoft Developer Network (MSDN) Web site or the Web for a possible explanation.
The file ‘NETOmniDriver-NET40.dll’ could not be loaded.
+++
I then click OK and click run in the Front panel of the .vi, then as aspected I get an error in running.
However, when I close the file and open it again, I get no error, and I click run, and the .vi works.
Seems like a delay in loading the DLL?
Can this issue be solved?
Perhaps related to this, here another issue:
When I click in the .vi on View -> .NET assemblies in memory, I get the following error message:
+++
Error 1097 occurred at Call Library Function Node in DotNETAssemblyVisualizer.lvlib:GetArrayOfAssemblyInfo.vi->DotNETAssemblyVisualizer.lvlib:AssemblyVisualizationWindow.vi
Possible reason(s):
LabVIEW: (Hex 0x449) An exception occurred within the external code called by a Call Library Function Node. The exception might have corrupted the LabVIEW memory. Save any work to a new location and restart LabVIEW.
=========================
LabVIEW: (Hex 0x449) An exception occurred within the external code called by a Call Library Function Node. The exception might have corrupted the LabVIEW memory. Save any work to a new location and restart LabVIEW.
+++
(This error doesn’t go away by closing it and doing it again.)
We looked in Windows at Dependency Walker and it seems that might be a delay-load issue of the DLL?
Is there a solution for this? That would be greatly appreciated!
Thank you very much in advance,
Everine
01-28-2019 09:11 AM
Hi Everine,
I have been looking into the issue you're having and I cannot find much documentation on a delay in loading any DLL. Although, I have found the following forum post which contains a number of steps tried by others when troubleshooting the Ocean Optics driver in LabVIEW.
Ocean Optics Spectrometers under LabView - Ocean Optics OmniDriver
I also found the following knowledge base article for the error code: 1097 .
Error 1097 While Calling DLL with Correct Calling Convention
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P9bHSAS&l=en-GB
Let me know once you've had a chance to try these steps and feel free to reach out with any further questions.
Jaimie
09-25-2019 01:16 AM