07-24-2013 03:17 AM
Hi everybody,
I get the following error when I try to run my SW:
"cvi_thread.h"(95,33) syntax error; found 'identifier' expecting ';'.
"cvi_thread.h"(96,33) syntax error; found 'identifier' expecting ';'.
"cvi_thread.h"(98,33) syntax error; found 'identifier' expecting ';'.
these errors refer to:
CmtThreadPoolHandle pool;
CmtThreadLockHandle lock;
CmtTSQHandle queueHandle;
I have read this post http://digital.ni.com/public.nsf/allkb/6A7825928D19C5318625714C006CEEC7 but I still do not know where is the error.
Where are types CmtThreadPoolHandle / CmtThreadLockHandle / CmtTSQHandle defined?
Thanks a lot for your help!!!
07-24-2013 04:10 PM
I cannot test at the moment as I have no CVI install here, but they are possibly defined in utility.h (or some lower level file included in that one), where all functions pertaining to multithreading are defined.
07-24-2013 10:22 PM
Confirmed: they are declared in utility.h.
Which version of CVI are you using? The help for CmtNelLock function includes this note which is not presente in the online version and may help you if you are using a version older than CVI2009:
Note In versions of LabWindows/CVI earlier than 2009, this parameter is declared as an integer variable instead of CmtThreadLockHandle. If you need to build your project in earlier versions of LabWindows/CVI, you must include cvi2009compat.h in your project. |
Since these variables were changed in type while addressing 64-bit architecture, a more detailed note on these data types can be found here