[vtk-developers] RFC: PATCH for exception handling in vtkWrapPython.c

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Mar 1 17:09:49 EST 2004

> Why do you think I'm implementing this?  I have quite an extensive 
> development platform with VTK and ITK integration, all implemented in 
> Python.  Having the application crash at the slightest ITK hiccup is 
> quite irritating. :)

I agree :)

> There will also be little or no performance impact, except perhaps for 
> calls like GetScalarTupleAsDouble() which are in some cases called quite 
> often from Python.  Otherwise, we're talking about a single try-catch 
> clause around an Update() statement that causes seconds (or minutes) of 
> processing through the whole combined pipeline.  The difference won't 
> even be measurable.

> That being said, I absolutely agree that it should be made conditional. 
>  I'll make a new patch and a patch for the top-level CMakeLists.txt.

Alright then! You have my vote.

> If you have any comments about the cross-platform use of std::exception, 
> I would be grateful.

ITK uses:
#include <stdexcept>


More information about the vtk-developers mailing list