<div>Thanks David.</div>
<div>I run it without crashing, too.</div>
<div>So, i think the problem is somewhere else ...</div>
<div> </div>
<div>Thanks,</div>
<div>Bill<br><br></div>
<div class="gmail_quote">2010/3/12 David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="gmail_quote">
<div class="im">On Fri, Mar 12, 2010 at 9:36 AM, Bill Chivas <span dir="ltr"><<a href="mailto:noo134@googlemail.com" target="_blank">noo134@googlemail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>To David:</div>
<div> </div>
<div>If it works with only two points, try to put some more (e.g. 10).</div>
<div>In mine, it crashes in 3 or 4 points.<br></div>
<div><br></div></blockquote>
<div class="gmail_quote"><br></div></div>
<div class="gmail_quote">This runs without crashing for me:</div>
<div class="im">
<div class="gmail_quote"><br></div>
<div class="gmail_quote">#include <vtkSmartPointer.h></div>
<div class="gmail_quote">#include <vtkPoints.h></div></div>
<div class="gmail_quote">#include <vtkMath.h></div>
<div class="im">
<div class="gmail_quote"><br></div>
<div class="gmail_quote">int main(int argc, char *argv[]) </div>
<div class="gmail_quote">{</div>
<div class="gmail_quote"> vtkSmartPointer<vtkPoints> points = </div>
<div class="gmail_quote"> vtkSmartPointer<vtkPoints>::New();</div>
<div class="gmail_quote"> </div></div>
<div class="gmail_quote"> points->SetNumberOfPoints(61000000);</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote"> int start = 60983588;</div>
<div class="gmail_quote"> for(unsigned int i = 0; i < 100; i++)</div>
<div class="gmail_quote"> {</div>
<div class="gmail_quote"> points->InsertPoint(start + i, vtkMath::Random(0.0,1.0), vtkMath::Random(0.0,1.0), vtkMath::Random(0.0,1.0));</div>
<div class="gmail_quote"> }</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote"> return EXIT_SUCCESS;</div>
<div class="gmail_quote">}</div>
<div class="gmail_quote"><br></div>Thanks,<br><font color="#888888"><br>
<div>David</div></font></div></blockquote></div><br>