[vtkusers] __after_morecore_hook crash

tom fogal tfogal at apollo.sr.unh.edu
Wed Nov 3 16:35:01 EST 2004


Oops, well sorry to answer my own question but I found out the problem
-- I was deleting the output twice.

I had passed Extract->GetOutput() as a return value and (eventually)
->Delete()d that pointer, and then my destructor would later
Extract->Delete().

Sorry for the noise.

-tom

 <200411032013.iA3KD7Mi022850 at apollo.sr.unh.edu>tom fogal writes:
>Hi all, I'm seeing a segfault in __after_morecore_hook which eventually
>leads back up to me deleting a vtkExtractGeometry object.
>
>The crash actually comes from a line in vtkSource::UnRegister line 808
>of the implementation:
>
> if (this->Outputs[idx]->GetNetReferenceCount() != 1)
>
>I'm using the RectilinearGridOutput of a
>vtkInterpolateDataSetAttributes as the input:
>
> this->Extract->SetInput(this->Interp->GetRectilinearGridOutput());
>
>when I use it, as well as an implicit function of a sphere, if that
>matters. I suspect it might because I tried a simple test program that
>just allocates and deallocates the object, which worked fine.
>
>Any ideas / thoughts on what I might be doing wrong or whats going on?
>This is with vtk4.4
>
>Thanks,
>
>-tom
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cg
>i-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list