Compiler Error C2185

'identifier' : illegal based allocation

An automatic (local) or register variable was declared with the __based modifier.

Only global variables can be declared as __based.