Work around for running out of memory when building multiple projects in Delphi < 10.2
Posted by jpluimers on 2018/08/16
I found out this is a problem until at least Delphi 10.1 Berlin, but my original question was for XE8:
Is there any tool that clears the Delphi memory overhead when a “build all” switches to the next project in a project group?
XE8 constantly runs out of memory with large project groups as the memory usage keeps increasing for each project it builds in the group.
There are actually two answers:
Uwe Raabe: Have you tried with Use MSBuild checked for each project?
Jeroen Wiert Pluimers: +Uwe Raabe Much better. Much slower too (:
and:
Torbjörn Olsson: Have you tried DDevExtensions?There is a setting named “Release compiler unit cache before compiling”
I’ve opted for the [Archive.is] DDevExtensions; I thought this VM had it installed, but apparently I forgot installing it as [Archive.is] IDE FixPack by the same author was installed.
This is how you configure DDevExtensions:
- Run Delphi
- Choose menu “Tools”, submenu “DDevExtensions Options…”
- In the dialog, select “Compilation” in the list on the left
- Ensure “Release compiler unit cache of other projects before compiling” is checked
- Confirm any changes
Source: [WayBack] Is there any tool that clears the Delphi memory overhead when a “build all” s…
In the comparison below:
- watch the scale of the graphs
- observe that DDevExtensions uses about the same memory as msbuild, but builds much faster

With “Use MSBuild externally to compile”

Regular “Build all”

With DDevExtensions






Leave a comment