[vtkusers] allocating memory

Mark Asbach mark.asbach at post.rwth-aachen.de
Tue Feb 3 13:12:00 EST 2004


Hi Tom,

> Anyone have any ideas of why it gives me access violation when I do
>
> vtkpoints->SetNumberOfPoints( number );
> vtkgrid->Allocate( number );

I can't see the connection between those two lines - has one of the 
pointers been derived from the other one?

Building your own data structures is not that straight forward in vtk - 
you should know what you're doing or you might generate inconsistent 
data. It would be much easier to find your problem and help with a 
solution, if you posted more code.

Yours, Mark





More information about the vtkusers mailing list