[vtkusers] GetFieldData segfaults

David Doria daviddoria at gmail.com
Sat Apr 25 14:36:56 EDT 2009


On Thu, Apr 23, 2009 at 1:14 PM, David Doria <daviddoria at gmail.com> wrote:

>
> On Thu, Apr 23, 2009 at 12:58 PM, Berk Geveci <berk.geveci at kitware.com>wrote:
>
>> Maybe the polydata pointer is invalid? Or maybe there is some issues
>> with using smart pointers. Try this:
>>
>> vtkFieldData* FieldData = polydata->GetFieldData();
>>
>> where polydata is not a smart pointer.
>>
>> -berk
>>
>
>
Berk,

I switched everything TO smart pointers and then it worked. Interesting... I
guess the moral of the story is always use smart pointers, so you don't have
to worry about what happens when you mix smart pointers and regular
pointers.

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090425/82af5a6f/attachment.htm>


More information about the vtkusers mailing list