# Disable OutputWindow by exception

**URL:** <https://discourse.itk.org/t/disable-outputwindow-by-exception/842>\
**Category:** Uncategorized\
**Created:** [April 17, 2018, 8:16am UTC](https://discourse.itk.org/t/disable-outputwindow-by-exception/842 "2018-04-17T08:16:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HsuehWen](https://discourse.itk.org/user_avatar/discourse.itk.org/hsuehwen/32/1453_2.png) [@HsuehWen](https://discourse.itk.org/u/HsuehWen)\
**Post date:** [April 17, 2018, 8:16am UTC](https://discourse.itk.org/t/disable-outputwindow-by-exception/842/1 "2018-04-17T08:16:51Z")

</div>

Hi all,

I’m using ITK for registration. There are cases that two images basically can’t be registered, then ITK will output error message on an output window like  
 ![Exception](https://discourse.itk.org/uploads/default/original/1X/c4553a7652351145bcbea4021ed70c77531836b8.PNG)

Is there a way to disable this window? I don’t want my user to see this.  
Thanks.

BR,  
HsuehWen

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [April 17, 2018, 1:27pm UTC](https://discourse.itk.org/t/disable-outputwindow-by-exception/842/2 "2018-04-17T13:27:12Z")

</div>

There are two ways described in this [message](https://itk.org/pipermail/insight-users/2008-April/025521.html).
