Fatal Error C1002

compiler is out of heap space in pass 2

The compiler ran out of dynamic memory space during its second pass, probably due to a program with too many symbols or complex expressions.

To fix by using the following possible solutions

  1. Divide the source file into several smaller files.

  2. Break expressions into smaller subexpressions.

  3. Remove other programs or drivers that consume memory.