02-20-2009 09:54 AM
The help file (CVI 9.0) for CmtDiscardLock says: "If a thread currently owns the thread lock, this function waits for the thread to release the lock before uninitializing the lock."
The function, however, returns error -14931: You cannot discard a lock that is still owned
I'm guessing that CmtDiscardLock is not waiting until the other thread releases the lock before giving me this error message.....so my bet is that the help is wrong, and when I get this error, the lock is not being uninitialized....true?
02-23-2009 08:53 AM