Message Invalid argument to __declspec. Valid arguments are "thread" or "__thread". Description The only valid arguments to the __declspec storage class modifier are "thread" or "__thread". User Action Either use one of the valid arguments, or remove the storage class modifier.