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 E2313 Attribute – Known attribute cannot specify properties Reason for the Error & Solution No further information...
Delphi Compiler Error E2379 Virtual methods not allowed in record types Reason for the Error & Solution No further information...
Rodrigo , one of the long time Delphi Developer has been working on one of his personal project “Delphi IDE...