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

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