LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Fault Tolerant Programming in RealTime

As rolfk mentioned, strtok is not multithread-safe, use strtok_r instead. It may not be important in your case, but I don't what else your program is doing and you mention real-time, so...

0 Kudos
Message 21 of 24
(633 Views)

I have no such function in my library.

Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 22 of 24
(619 Views)

Hmmm, yeah, the '_r' multithread-safe variants of standard C functions haven't made it to CVI yet in most cases. But they are easy enough to find in open-source source code and add to your projects...

See here.

This should actually be on the CVI Christmas suggestion list...

0 Kudos
Message 23 of 24
(611 Views)

I have not had the mystery source error since changing to strtok_r.  I will report back if anything changes.  Thanks all!

Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 24 of 24
(528 Views)