Delphi Error – F2046 Out of memory

Delphi Compiler Error

F2046 Out of memory

Reason for the Error & Solution

You get this error when the RAD Studio built-in compiler runs out of memory.

This is a rare error that might occur when you build an extremely large project group of applications and libraries.

To solve this issue, do any of the following:

  • Make sure your swap file is large enough and that there is still room on your disk. See .
  • Configure your project group to be built externally to the IDE: Select Project > Options > and check the Use MSBuild externally to compile property.
    Note: If you want to be able to debug your app when you build with this option set, the Include remote debug symbols option should also be enabled on Project > Options > Delphi Compiler > .
  • Build your project group .
  • Refactor the applications and libraries in your project group to rely more on . Delphi packages do not make the IDE run out of memory.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Delphi Compiler Error X2421 Imported identifier ‘%s’ conflicts with ‘%s’ in ‘%s’ Reason for the Error & Solution This occurs...
Delphi Compiler Error X2367 Case of property accessor method %s.%s should be %s.%s Reason for the Error & Solution No...
Delphi Compiler Error X2269 Overriding virtual method ‘%s.%s’ has lower visibility (%s) than base class ‘%s’ (%s) Reason for the...