[vtkusers] breaking after vtkErrorMacro

Dominik Szczerba 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?

Thanks,
Dominik

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()
> 
> hth
> 
> Goodwin
> 

-- 
Dominik Szczerba, PhD
Computational Physics Group
IT'IS Foundation for Research
http://www.itis.ethz.ch



More information about the vtkusers mailing list