[vtkusers] vtkDataArray: Memory allocation problem

Bill Lorensen bill.lorensen at gmail.com
Tue Jan 26 11:10:34 EST 2010


Are there other filters involved in the processing? What does your vtk
pipeline look like?

On Tue, Jan 26, 2010 at 10:59 AM, Malsoaz James <jmalsoaz at yahoo.fr> wrote:

> Hello,
>
> First of all, I would like to expose the context of my problem. I'm working
> on an application which is in charge of loading/building a 3D volume from
> Dicom files. The building of the 3D volume is working perfectly using a
> vtkIntArray and setScalars().
>
>
> Unfortunately, later in the software, I need to rebuild a new 3D volume
> using one more time vtkIntArray with the same size but I got an error like:
> vtkIntArray: Unable to allocate X elements of size 4. Although I have enough
> memory (I have 3Go of RAM), I'm doing exactly the same thing as the first
> build and the charge on Windows for the application is always under 1Go. My
> application is working with small volume (ie 150 slices) and I got this
> allocation error with big volume (ie more than 300 slices).
> For information, the images have a size of 512*512.
>
> Do you know what is the origin of the problem? How can I solve this ?
>
>
> Best
> James
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100126/7ff38404/attachment.htm>


More information about the vtkusers mailing list