We have a program on Mac. In it, "NI-DAQmx Base" is called. When it is going to quit, it hangs. When we force quit it, it crashes.
According to my investigation, the program calls the DAQmxBaseResetDevice in a thread. When quitting the program, it will hang or crash. If DAQmxBaseResetDevice is removed, it will be OK.
The device is not attached. I think the original people wanted to check if the device is attached by calling DAQmxBaseResetDevice. Is it correct way to do this check?
In the attachment, I simplified our program. You can see the details.
Is there some something with it? Please help me.
Operating system: Mac OS X 10.6.8
IDE: Xcode 3.2.6
"NI-DAQmx Base 3.6 - Mac OS X" was downloaded at http://joule.ni.com/nidu/cds/view/p/id/3431/lang/en