[vtkusers] Memory problem

John Drescher drescherjm at gmail.com
Thu Jul 15 12:46:02 EDT 2010


> But I have 3 vtkImageReader2 to show every plane (axial, sagittal, coronal)
> on his own renderwindow.
>

You are loading a 3D volume 3 times? You definitely do not need to do
that for visualization.

> Well, then my only solution is to change my platform ? There is not any way
> to force vtk to try split memory allocation when malloc fails? Or force to
> use swap when malloc fail?

The problem is not swap/pagefile. It is that under 32 bit windows
(without /LARGEADDRESSAWARE and the /3GB switch) you have a 2GB
address space maximum regardless of the amount of ram or swap that you
have. Inside this 2GB address space dlls that are needed in your
application will fragment this 2GB such that ~1.2GB is the largest
single block of address space available.


John



More information about the vtkusers mailing list