[vtkusers] Bug at 'GetData()' function

Sean McBride sean at rogue-research.com
Mon Oct 27 11:46:38 EDT 2008


On 10/26/08 7:03 PM, B. C. said:

>Please can someone tell me what the function 'GetData()' returns in
this case?
>vtkDataArray *array = myPolyData->GetPoints()->GetData();
> 
>I have this line in my code and no errors are generated. But, when
>running the program, i have the bug and the cursor is at this line.

Probably myPolyData is null, or the result of GetPoints is null.  In C+
+, you cannot deference null, you will crash.

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada





More information about the vtkusers mailing list