Subject: CGAL users discussion list
List archive
- From: Fernando Cacciola <>
- To:
- Subject: Re: [cgal-discuss] CGAL 3.5 and \clr "out of heap space"
- Date: Tue, 03 Nov 2009 11:53:09 -0300
Hello Thibaut,
Hello everyone.
I am currently trying to use CGAL 3.5 and I am running in a strange error
during compilation of mesh_polyhedral_domain.cpp under Visual Studio 2008, on
Vista 64-bit.
The project compiles and runs fine when I compile it (in release mode).
But if I turn the /clr switch on to use the library within a manaegd
application, I get the following error during compilation :
"Compiler out of heap space"
The command line fed to the compiler is the following :
/O1 /Ob2 /I "C:\CGAL\CGAL-3.5\include" /I
"C:\CGAL\CGAL-3.5\examples\Mesh_3\..\..\include" /I
"C:\CGAL\CGAL-3.5\examples\Mesh_3" /I "C:\CGAL\CGAL-3.5\auxiliary\gmp\include"
/I "C:\boost\boost_1_40_0" /D "WIN32" /D "_WINDOWS" /D
"_CRT_SECURE_NO_DEPRECATE" /D "_SCL_SECURE_NO_DEPRECATE" /D
"_CRT_SECURE_NO_WARNINGS" /D "_SCL_SECURE_NO_WARNINGS" /D "NDEBUG" /D
"CMAKE_INTDIR=\"Release\"" /D "_UNICODE" /D "UNICODE" /FD /EHa /MD /Gy
/Fo"x64\Release\\" /Fd"x64\Release\vc90.pdb" /W3 /nologo /c /Zi /clr /TP
/errorReport:prompt
with additional options : /Zm1000 /fp:except-
VS 2008 uses dynamically allocated memory for the application and a fixed sized heap for precompiled headers (pch). The /Zm options affects the PCH fixed-size heap.
Generally speaking, if the PCH is too big you would need to increase the value of /Zm or decrease the number of header files within the PCH.
IIUC there are no precompiled headers involved in your case, so what could happen is that /Zm1000 is too big a value (allocates 750 mb). That is: /Zm reserves too much memory to the PCH, leaving less memory for the aplication. The out of heap space could be a consequence of that, so try removing /Zm or decreasing its value.
HTH
--
Fernando Cacciola
www.geometryfactory.com
- Re: [cgal-discuss] CGAL 3.5 and \clr "out of heap space", Fernando Cacciola, 11/03/2009
Archive powered by MHonArc 2.6.16.