[vtkusers] Unconnected filter(s) causing seg faults

Charl P. Botha c.p.botha at ewi.tudelft.nl
Thu Oct 16 10:39:06 EDT 2003


N Smethurst wrote:
> I've been writing a program that includes a drag & drop front end to the VTK 
> libraries for a while now, and I have noted there is a sometimes a problem 
> with unconnected filters.

I've been finding and fixing these for a while now, since I'm making 
something similar.  When users start arbitrarily connecting and 
disconnecting objects with each other, funny things tend to happen. :)

> Can these checks be included in all execute methods? I am happy to help by 
> submit the simple patches implementing them. I have not checked how many 
> need doing yet.. possibly there are very few.

When you run into these, please make a unified diff and post it, along 
with your rationale.  I'll review and commit.  One tip (probably not 
necessary in your case) is that I've obviously found it far more 
effective to make these sanity checks in the base classes.

Thanks,
Charl

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/




More information about the vtkusers mailing list