Compiler Error C2323

compiler limit: out of local keys compiling function 'function'

The specified function declares too many local variables to be compiled. Divide the function into two or more functions.