<br>Hi,<br><br>According to me, InsertPoint()'s first parameter is of type vtkIdType which is in turn typedef of integer..<br><br>Being an integer variable, of 4 bytes, it has a limit of range...  See this<br><br><a target=\"_blank\" href="http://msdn.microsoft.com/en-us/library/s3f49ktz%28VS.80%29.aspx">http://msdn.microsoft.com/en-us/library/s3f49ktz%28VS.80%29.aspx</a><br><br>Thus, i guess, it goes out of the range and it produces this error.. As you said, for small numbers it works fine, That should be the cause..<br><br>Thanks<br><br>Regards<br>Rakesh Patil<br><blockquote><br>---------- Original message ----------<br>From:Bill Chivas&lt; noo134@googlemail.com &gt;<br>Date: 12 Mar 10 15:53:19<br>Subject:  [vtkusers] vtkPoints + InsertPoint<br>To: vtkusers@vtk.org<br><br><div>Hi all,</div>
<div> </div>
<div>i use </div>
<div> </div>
<div>vtkPoints *points  = vtkPoints::New();</div>
<div>points-&gt;InsertPoint(60983688, x, y, z);</div>
<div>points-&gt;InsertPoint(60984688, x, y, z);</div>
<div>points-&gt;InsertPoint(60985688, x, y, z);</div>
<div>points-&gt;InsertPoint(60986688, x, y, z);</div>
<div>and so on (10 points)</div>
<div> </div>
<div>and i get the error: "ERROR: In c:\vtk\common\vtkDataArrayTemplate.txx, line 358<br>vtkFloatArray (03A17E38): Unable to allocate 366022158 elements of size 4 bytes."</div>
<div> </div>
<div>I think it has to do with the fact i set as id a big number (NOT out of range, though).</div>
<div>When i set small numbers as ids, i get no errors.</div>
<div> </div>
<div>Can anyone help?</div>
<div> </div>
<div>Thanks,</div>
<div>Bill</div>
</blockquote>