[vtkusers] C++ crash when using insertPoint()

Oliver Kania ptw.freiburg at googlemail.com
Fri Feb 15 09:57:16 EST 2008


Hello,
the following code makes VTK crash on my system:

vtkPoints* testpts = vtkPoints::New();
testpts->Initialize();
testpts->InsertPoint(1,0.0,0.0,0.0);

Visual C++ echoes the following message:

Unhandled exception at 0x00000000 in Basic1.exe:
 0xC0000005: Access violation reading location 0x00000000.

The insertPoint Function, in which the crash happens,
includes the line:
this->Data->InsertTuple(id,p);

Here, the lookup-Table field of Data is a Null-Pointer.
Maybe this is the problem?

regards, Oliver


PS: I am using  VC++ 2005 on MS-Windows with a bleeding-edge VTk version
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080215/5eb6da95/attachment.htm>


More information about the vtkusers mailing list