Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/C++    [ Add a report in this area ]  
Report #:  116986   Status: Closed
Compiler/IDE crashes due to low memory
Project:  C++Builder Build #:  XE3
Version:    17.0 Submitted By:   Andre Kaufmann
Report Type:  Crash / Data loss / Total failure Date Reported:  7/2/2013 10:54:47 AM
Severity:    Infrequently encountered problem Last Updated: 6/8/2014 6:16:09 PM
Platform:    All versions Internal Tracking #:   40768
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : XE6
Duplicate of:  None
Voting and Rating
Overall Rating: (3 Total Ratings)
5.00 out of 5
Total Votes: 6
Description
The C++ compilers (bcc32.exe bcc64.exe) don't have the LARGEADDRESSAWARE flag set in PE Header and therefore use only 2GB of potential 3/4GB Memory (depends on the OS).

Some of our projects can't be compiled anymore, because the compiler crashes during compilation, because it uses more than 2GB of Memory for some C++ Units.

Steps to Reproduce:
Compile large C++ units including a lot of header files so that the Compiler uses more than 2GB.

Alternative: refactoring the code isn't always possible
Workarounds
Set LARGEADDRESSAWARE flag in bcc32.exe / bcc64.exe and use the external C++ Compiler.

BDS.exe shouldn't be modified, since this would corrupt the license.
Attachment
None
Comments

Nigel Jones at 6/6/2014 2:03:23 AM -
This is marked as fixed in the XE6 fix list (http://edn.embarcadero.com/article/43754) but is marked as still open here. Which is it?

Tomohiro Takahashi at 6/7/2014 6:20:10 AM -
I will check internal status of this report.
Thanks.

Tomohiro Takahashi at 6/8/2014 6:16:30 PM -
In internal tracking system, this report was closed as 'Can not reproduce' with C++Builder XE6

Server Response from: ETNACODE01