Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Memory Issues    [ Add a report in this area ]  
Report #:  81427   Status: Closed
[Win64] Out of memory compiling several projects
Project:  Delphi Build #:  2010, ... XE3
Version:    17.0 Submitted By:   LUIS MADALENO
Report Type:  Crash / Data loss / Total failure Date Reported:  1/22/2010 9:12:19 AM
Severity:    Critical / Show Stopper Last Updated: 4/15/2014 6:49:54 PM
Platform:    All versions Internal Tracking #:  
Resolution: Duplicate (Resolution Comments) Resolved in Build: : XE6
Duplicate of:  95668
Voting and Rating
Overall Rating: (3 Total Ratings)
5.00 out of 5
Total Votes: 17
for me it's:

47 projects in the project group
178 source files (PAS/DFM/DPR/DPK) = 2,2 MB
36.700 lines of code (says the compiler > compile all)

70 DCU = 1,99 MB
47 EXE/DLL/BPL = 84,6 MB (debug build)
Steps to Reproduce:
I have a Windows 7 64bits machine with 6GB of Ram and a Project Group with only 14 exe projects.

If I try to build all of them at once, the IDE will use up to 1.3GB of ram and then craches with an Out of memory message.

Why can't it handle more ram? I still have 1.5GB free.

This happens every time.

Tomohiro Takahashi at 1/22/2010 4:40:17 PM -
Could you please contact technical support service?

Markus Humm at 1/28/2010 4:14:50 AM -
How many lines of code (approx.) does your project have?

Frank Semmling at 10/25/2012 4:26:28 AM -
for me it's:

47 projects in the project group
178 source files (PAS/DFM/DPR/DPK) = 2,2 MB
36.700 lines of code (says the compiler > compile all)

70 DCU = 1,99 MB
47 EXE/DLL/BPL = 84,6 MB (debug build)

Frank Semmling at 10/25/2012 4:27:14 AM -
in XE3

Tomohiro Takahashi at 10/25/2012 4:16:13 PM -
What OS do you use, for example Windows 7 64bit etc...?

and, your issue is same as QC#78465 ?

Frank Semmling at 10/26/2012 9:03:49 AM -
Yes, there seems to act the same problem.

Frank Semmling at 10/26/2012 9:01:13 AM -
Windows 7 Home Premium 64 Bit
Windows Home Server 2011 (64 Bit)

The cause was found but already. (from jbg aka Andreas Hausladen)

The in-line compiler sets for each project to a cache, with all the units and this cache is never emptied, until the IDE runs out of memory and it crashes.
Especially the whole delphi units (such as SysUtils, Forms, etc.) thereby occupy much space is exponentially.

Markus Humm at 9/21/2010 1:18:12 PM -
Did you try to compile this project group with Delphi XE already? I think I've read somewhere that something affecting such a memory issue has been fixed in XE. If you don't own XE you might use the trial to check this. If you checked this you should report back here what you found. We can either close or really open the report then.

Chris Nillissen at 3/31/2013 7:57:04 PM -
This is still a problem in XE 3 Update 2!

I have a Project Group with 16 projects and if I try and compile them all in 32 bit and then in 64 bit, I get an "out of memory" error. You can see the memory of the IDE increase after each build but not reduce, until the project group is closed (Restating the IDE is not needed).

My work around at the moment is to compile them all for 32 bit , close and reopen the project group and then compile them all in 64 bit. However, this issue defeats the purpose of using "Build Groups", which I really want to use.

Chris Nillissen at 6/6/2013 7:40:12 PM -
Still a problem in XE4!

Server Response from: ETNACODE01