[vtkusers] Crashed on vtkDataArray::SetName(...)
Weiguang Guan
guanw at rhpcs.mcmaster.ca
Wed Feb 11 15:33:40 EST 2009
Can anyone tell me what's wrong with the following code section:
// allocate the new scalars
vtkDataArray* scalars = vtkDataArray::CreateDataArray(dataType);
scalars->SetNumberOfComponents(numComponents);
// allocate enough memory
scalars->SetNumberOfTuples(numTuples);
scalars->SetName("first");
I got "Segmentation fault" when it executes scalars->SetName("first").
dataType is VTK_FLOAT, numComponents = 1, numTuples = 6000000.
Thanks.
Weiguang
More information about the vtkusers
mailing list