Closed gvanem closed 1 year ago
g_logfile
isn't actually being used anywhere other than that fclose()
call, so I opened #526 to remove it. Thanks for letting us know!
I'm amazed this has not been an issue before. But I guess since you prefer MinGW with
msvcrt.dll
this illegal use of stderr
has not been an issue. Why not switch to MinGW-w64 with UCRT at least?
I'm amazed this has not been an issue before. But I guess since you prefer MinGW with
msvcrt.dll
this illegal use ofstderr
has not been an issue. Why not switch to MinGW-w64 with UCRT at least?
We're actually using LLVM MinGW to build the Windows builds, which in theory should be using UCRT already.
I've built the latest tip-of-master FreeDV-GUI using clang-cl on Win-10. But some times I get a crash on program exit; Dr. Watson kicks in with this call-stack (Release-mode):
The console-trace at time until the crash:
The issue seems to be that
~MainFrame()
has:while the TxRx thread (at a bit later time) still needs to use
stderr
. A fix for me was to write it like: