# How to disable vtkOutputWindow?

**URL:** https://discourse.vtk.org/t/how-to-disable-vtkoutputwindow/242
**Category:** Support
**Created:** [February 8, 2019, 12:46am UTC](https://discourse.vtk.org/t/how-to-disable-vtkoutputwindow/242 "2019-02-08T00:46:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mdh](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mdh/32/2245_2.png) [@mdh](https://discourse.vtk.org/u/mdh)
#### Post date: [February 8, 2019, 12:46am UTC](https://discourse.vtk.org/t/how-to-disable-vtkoutputwindow/242/1 "2019-02-08T00:46:43Z")

</div>

Hello,

When an error occurs during the execution of a filter an instance of vtkOutputWindow is created internally in VTK and the error message gets shown. Once shown, the user is unable to kill this output window. I have an interactive Windows application and this window pops up on top of my application and hinders interaction. Is there a way to hide this window and instead send these error messages to a log file or to the console?

Thanks for your time!

---

<div class="post-metadata">

### Author: ![utkarshayachit](https://discourse.vtk.org/user_avatar/discourse.vtk.org/utkarshayachit/32/379_2.png) [@utkarshayachit](https://discourse.vtk.org/u/utkarshayachit)
#### Post date: [February 8, 2019, 1:43am UTC](https://discourse.vtk.org/t/how-to-disable-vtkoutputwindow/242/3 "2019-02-08T01:43:24Z")

</div>

simply call `vtkObject::GlobalWarningDisplayOff()`. That will keep any error/warning/debug messages from being posted to the vtkOutputWindow.

---

<div class="post-metadata">

### Author: ![mdh](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mdh/32/2245_2.png) [@mdh](https://discourse.vtk.org/u/mdh)
#### Post date: [February 8, 2019, 2:30am UTC](https://discourse.vtk.org/t/how-to-disable-vtkoutputwindow/242/4 "2019-02-08T02:30:36Z")

</div>

Thank you! This did the trick!
