[vtk-developers] PLY reader issues
Sean McBride
sean at rogue-research.com
Fri Nov 16 16:26:57 EST 2007
On 11/15/07 11:29 AM, David Cole said:
>On 11/15/07, Sean McBride <sean at rogue-research.com> wrote:
>> Someone on vtk-users also pointed out that this code calls 'exit(-1)' on
>> error. Of course, this terminates the process, loosing any unsaved
>> work. What should it do instead?
>
>Anything but...
:)
>Most places where errors occur in VTK simply use vtkErrorMacro and do
>an early return. It is not a very robust generic error/exception
>handling mechanism and relies on avoiding errors in the first place.
vtkErrorMacro seems to require 'this' but everything in vtkPLY is static
methods. Is there a variant error macro I can use? I didn't see one...
Cheers,
--
____________________________________________________________
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 vtk-developers
mailing list