LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error while calling dll function

Hello, 
I'm using Labview 2020 32bits , i'm calling a dll genrated using Visual Studio C++.
The dll worked correctly , but when i add the "sqrt" or "fabs" math function or any other function from "math.h",  i get this error on labview . does anyone have a solution for this problem, thank you.

HAMDIZ_0-1634124630171.png

 

0 Kudos
Message 1 of 3
(777 Views)

Error 1097 means that your DLL somehow caused an exception or a stack mismatch. Exceptions can be caused by many different things, such as accessing invalid memory address, division by zero, or many more such things. Possible reason can be simply programming bugs in your C code, mismatched configuration of the LabVIEW Call Library Node with what the DLL expects, etc.

 

Without seeing the code and the VIs to call the DLL there is not much more we could tell you.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(739 Views)

Hi,

 

You can try the troubleshooting steps described in the following article.

Error 1097 Occurred at Call Library Function Node 

0 Kudos
Message 3 of 3
(712 Views)