[vtkusers] Out of heap space and VC++ 7.0

Ravi Gupta rgupta at irus.rri.ca
Thu May 9 10:11:50 EDT 2002


Using VTK 3.2 I encountered the following

Error:
C:\Program Files\Microsoft Visual Studio\VC98\include\istream(547) : 
warning C4530: C++ exception handler used, but unwind semantics are not 
enabled. Specify -GX
V:\vtk32-src-win\common\vtkMultiThreader.h(159) : fatal error C1076: 
compiler limit : internal heap limit reached; use /Zm to specify a 
higher limit
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'

My Solution:
W:\withLocal\vtk32-w2k\Debug\vtkpython\make
CPP_PROJ=/D "STRICT" etc...

CHANGED TO

CPP_PROJ=/GX /Zm1000 /D "STRICT" etc...

In my case /Zm1000 worked...


Andrew J. P. Maclean wrote:

> Has anyone been getting out of heap space messages when compiling with 
> VC++ V7.0? Often specifying a higher compiler limit using /Zm has no 
> effect, particularly when compiling a release version. Initially I 
> thought it was not related to vtk ( because I am a heavy user of 
> templates and the STL ), however non-vtk code compiles OK.
> 
>  
> 
>  
> 
> I have recompiled all the vtk libraries under VC7 and am using the 
> correct ones.
> 
>  
> 
> Any help would be appreciated.
> 
>  
> 
>  
> 
>  Thanks
> 
>     Andrew
> 
>  
> 
>  
> 


-- 
Ravi Gupta

Programmer


#################################################
The John P. 			| P.O. Box 5015
Robarts Research Institute	| 100 Perth Drive
Imaging Research Laboratories	| London
Tel: (519) 663-5777 ext. 1-34077| Ontario
Fax: (519) 663-3403		| Canada
E-Mail: rgupta at irus.rri.ca	| N6A 5K8
#################################################

#################################################
http://www.irus.rri.ca/igns 

http://www.irus.rri.ca/~rgupta 

#################################################

"Be the change you wish to see in the world."
-Mohandas Karamchand Gandhi




More information about the vtkusers mailing list