11-26-2018 08:41 AM
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?
11-26-2018 10:52 AM - edited 11-26-2018 10:52 AM
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.