mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
Don't start logging window in debug builds under windows (we use the MSVC debugger window instead).
Added (commented out) memory leak detection to AudacityHeaders.h
This commit is contained in:
@@ -101,6 +101,7 @@ It handles initialization and termination by subclassing wxApp.
|
||||
#include "effects/ScoreAlignDialog.h"
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#ifdef _DEBUG
|
||||
#ifdef _MSC_VER
|
||||
#undef THIS_FILE
|
||||
@@ -108,6 +109,7 @@ It handles initialization and termination by subclassing wxApp.
|
||||
#define new new(_NORMAL_BLOCK, THIS_FILE, __LINE__)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Windows specific linker control...only needed once so
|
||||
// this is a good place (unless we want to add another file).
|
||||
@@ -1005,12 +1007,16 @@ bool AudacityApp::OnInit()
|
||||
}
|
||||
#endif
|
||||
|
||||
// JKC: On windows, we only want a logger in release builds.
|
||||
mLogger=NULL;
|
||||
#ifndef __WXMAC__
|
||||
mLogger = new wxLogWindow(NULL, wxT("Audacity Log"), false, false);
|
||||
mLogger->SetActiveTarget(mLogger);
|
||||
mLogger->EnableLogging(true);
|
||||
mLogger->SetLogLevel(wxLOG_Max);
|
||||
wxLogMessage(wxString::Format(wxT("Audacity %s"), AUDACITY_VERSION_STRING));
|
||||
#ifndef _DEBUG
|
||||
mLogger = new wxLogWindow(NULL, wxT("Audacity Log"), false, false);
|
||||
mLogger->SetActiveTarget(mLogger);
|
||||
mLogger->EnableLogging(true);
|
||||
mLogger->SetLogLevel(wxLOG_Max);
|
||||
wxLogMessage(wxString::Format(wxT("Audacity %s"), AUDACITY_VERSION_STRING));
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Unused strings that we want to be translated, even though
|
||||
|
||||
Reference in New Issue
Block a user