LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Non fatal run-time error stopping program error return value = -11 timeout error

I am working on a project to acquire data from an NI-9205 and transmit results to a server.  During some initial testing of the code we are seeing a random crash of the program with the following message:

NON-FATAL RUN-TIME ERROR:   "DAQmx4.c", line 99, col 9, thread id 0x00001338, function id 105:   Function ConnectToTCPServer: (return value == -11 [0xfffffff5]). Timeout error

 

Why is the program stopping for a non-fatal error?  Particularly a timeout - that's the whole purpose of having a timeout in the first place - to keep the program running. 

How do I prevent the program from stopping like this for any non-fatal errors?

0 Kudos
Message 1 of 2
(2,860 Views)

ConnectToTCPServer has nothing to do with data acquisition, I can imagine that for some reason the connection to an external server fails and a message is prompted stopping the program, which then crashes in a DAQmx call due for e.g. a buffer overflow, but the two things are not related.

What you can do is go to Run menu and uncheck Break on >> Library errors item: with this, no popup message will be displayed leaving the program free to continue executing. Of course, you'll have to properly handle in the code the timeout condition in TCP communication.



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,845 Views)