mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-25 13:18:37 -05:00
WINDOWS_NO_SECONDARY_CONSOLE: The explicit allocated Console on Windows apparently tends to hang the application more, suppress it
This commit is contained in:
parent
0d50a2b241
commit
5a668583cd
@ -165,8 +165,11 @@ bool CubicSDR::OnInit() {
|
||||
return false;
|
||||
}
|
||||
|
||||
// // console output for Windows: available in DEBUG or in case of ENABLE_DIGITAL_LAB
|
||||
#if (defined(WIN32) && (defined(ENABLE_DIGITAL_LAB) || defined(_DEBUG)))
|
||||
//Deactivated code to allocate an explicit Console on Windows.
|
||||
//This tends to hang the apllication on heavy demod (re)creation.
|
||||
//To continue to debug with std::cout traces, simply run CubicSDR in a MINSYS2 compatble shell on Windows:
|
||||
//ex: Cygwin shell, Git For Windows Bash shell....
|
||||
#if (0)
|
||||
if (AllocConsole()) {
|
||||
freopen("CONOUT$", "w", stdout);
|
||||
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_RED);
|
||||
|
Loading…
Reference in New Issue
Block a user