From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dll show c++ runtime library error

I am calling a dll to acquire spectrum analyzer data, but I ahve been getting this error recently as shown in figure below.

c++ error.jpg

If i click on retry the vi runs smoothly but if the click on abort or ignore then labview crahes. 

 


CLD Using LabVIEW since 2013
0 Kudos
Message 1 of 2
(2,021 Views)

That is a bug in your DLL you are calling. Somewhere the DLL calls the function fgets() with a NULL pointer for the string value, the function is supposed to write data into. The C runtime library has build in various parameter checks to verify that function parameters do not contain invalid values such as a NULL pointer and then generates an assert(). This assert causes the error dialog. If you continue, the code after the assert tries to access the invalid parameter and of course crashes then.

So you really will need access to the source code for the DLL and determine why it tries to call fgets() with a null pointer as first parameter.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(2,000 Views)