Fatal Error C1002

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at 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.

Show: