mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-04 22:27:49 -04: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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// // console output for Windows: available in DEBUG or in case of ENABLE_DIGITAL_LAB
|
//Deactivated code to allocate an explicit Console on Windows.
|
||||||
#if (defined(WIN32) && (defined(ENABLE_DIGITAL_LAB) || defined(_DEBUG)))
|
//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()) {
|
if (AllocConsole()) {
|
||||||
freopen("CONOUT$", "w", stdout);
|
freopen("CONOUT$", "w", stdout);
|
||||||
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_RED);
|
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_RED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user