Skip to content

Commit 7be48a3

Browse files
authored
Moving initialization of Windows console to Debug mode. (#255)
1 parent 5f5b900 commit 7be48a3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Main/Seg3DBase.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ Seg3DBase::Seg3DBase() :
128128
display_splash_screen(!Core::Application::Instance()->is_command_line_parameter( "nosplash")),
129129
start_sockets(false)
130130
{
131-
#if defined (_WIN32)
132-
RedirectIOToConsole();
133-
#endif
134131
boost::filesystem::path path;
135132
Core::Application::Instance()->get_application_filename(path);
136133
this->program_name = path.string();
@@ -187,6 +184,9 @@ bool Seg3DBase::initialize()
187184
Core::RolloverLogFile event_log( Core::LogMessageType::ALL_E );
188185

189186
#ifndef NDEBUG
187+
#if defined (_WIN32)
188+
RedirectIOToConsole();
189+
#endif
190190
// -- Stream errors to console window
191191
new Core::LogStreamer( Core::LogMessageType::ALL_E, &std::cerr );
192192
#endif

0 commit comments

Comments
 (0)