LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

fatal run time error

how to clear     FATAL RUN-TIME ERROR 

 

Invalid argument type: found 'pointer to unsigned char', expected 'pointer to int'.      

 

and what is difference between non fatal run- time error and fatal run time error

0 Kudos
Message 1 of 2
(3,225 Views)

The Invalid argument type error means that you are passing a wrong data type to a variable: in your case you are passing a pointer to unsigned char to a variable of type pointer to int. The same can apply when setting a control value: each control has a datatype associated to it that you must match when setting the control value. This type of error can be cleared only by changing the datatype to something compatible to the target variable/control.

An error you get at runtime can be fatal if it prevents the application to go on (it will crash the application if compiled and break it in the IDE); if the application can still go on even when getting the error you will get a non-fatal error warning in the IDE and nothing in a compiled executable; nevertheless, you can expect some unexpected program behavior in this case.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,840 Views)