[vtkusers] breaking after vtkErrorMacro
dominik at itis.ethz.ch
Fri Nov 7 03:19:25 EST 2008
Thanks for a hint, but I need to handle this case in a release version
(no debugger). I looked up the vtkErrorMacro and it indeed calls
BreakOnError() at the end. Is there a chance to attach own code there?
Goodwin Lawlor wrote:
> Dominik Szczerba wrote:
>> Is there a way to stop execution after vtkErrorMacro?
>> I get a malloc failure in a VTK filter that is not checked for in the
>> parent calling stack... (bug report due). pointer==0 is detected (if
>> ptr==0 vtkErrorMacro... return 0) but execution continues (leading
>> into bushes).
>> If not, what do I do to exit gracefully on a malloc quit?
> Hi Dominik,
> You can place a debugger break on vtkObject::BreakOnError()
Dominik Szczerba, PhD
Computational Physics Group
IT'IS Foundation for Research
More information about the vtkusers