I have a GUI C# app that uses a console created with AllocConsole. It works under normal conditions, but when the app is started in debug mode under Visual Studio, all output ends up in the Visual Studio Output window. How do I stop that?
I am using C# 3.5 and Visual Studio Pro 2010.
The process hosting option is off.
My solution was to reset the standard streams to the newly created console myself. Here is the code: