[Insight-developers] Managing Abort in Filters

Luis Ibanez luis.ibanez@kitware.com
Tue, 08 Apr 2003 13:43:28 -0400


Hi Josh,

Yeap, at the end of the day the user (or the GUI)
has to deal with the exception. The application
should be prepared for this since the Abort command
was actually originated from the user/GUI.

The only reason for catching in the GenerateData()
method is for potentially relase memory that has been
allocated locally. Once this cleanning is done, the
exception is thrown again.


   Luis


--------------------

Joshua Cates wrote:
> Hi Luis,
> 
> Why not have the user handle this exception?  If a filter is aborted then
> it cannot produce a correct output and the user must then decide how to
> proceed.
> 
> Josh.
>