Change vtkWin32OutputWindow to use a console
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Hello, Errors messages under Windows are printed into a simple and classic window. The problems of that window are :
- if an error message occurs when your application terminates, you can't read it : the window is closed as fast as it is created
- if your application freezes, is debugged, or does not have a message pump, the window is also freezed. I often experienced the case where there is a debug window that I can't read.
I propose to use a classic Windows console. If the VTK user has created a console program, the errors will be printed in this existing console. If no console exist, a new one will be created.
Bonus : this will remove a file from the file list which need to include windows.h (see bug #836 : http://www.vtk.org/Bug/bug.php?op=show&bugid=836&pos=8)