[vtkusers] vtkPLY exit

Sean McBride sean at rogue-research.com
Thu Nov 15 10:47:09 EST 2007


On 11/7/07 1:58 PM, James Hargrave said:

>Maybe it's one of my build settings or something but vtkPLY has a number of
>cases where it calls exit(-1).
>
>Is there a reason for this?  A failed return code or an exception would seem
>much more useful.  As it is now when an invalid .ply file is loaded into my
>application it shuts down instead of explaining the issue to the user and
>just aborting the load of the file.

I agree.  Calling exit() like that is evil.  Please file a bug at
<http://public.kitware.com/Bug>.  Also, my colleague Mathieu has
improved the PLY reader and it can now read more PLY files, you might
want to try VTK from CVS to see if this helps you.

-- 
____________________________________________________________
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