<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Sounds like you have an out of bound integer. Are you assigning a int to short or unsigned to signed?<br><br>Xiaofeng Zhao<br>
<a href="http://www.xzing.org" target="_blank"></a><br><br><br><br><hr id="stopSpelling">From: sosca7@hotmail.com<br>To: vtkusers@vtk.org<br>Date: Sun, 13 Mar 2011 13:28:10 +0000<br>Subject: [vtkusers] large number of images crashes the program<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<br><br>hello everyone,<br>
i have built a vtkvolume and i works well but when i run the code for 434 images the program crashes and i got a runtime error, has anyone any suggestion to save memory ?<br>
<br>
error:<br>
unable to allocate 56885248 elements of size 2......<br>
my trials:<br>
i tired to shrink the volume using <font color="#2b91af" size="2"><font color="#2b91af" size="2">vtkImageShrink3D <font color="#000000">with factors of (4,4,4)</font><br></font></font>                                           
<br>_______________________________________________
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                                            </body>
</html>