Index: Common/FileSupport.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Common/FileSupport.cpp (.../FileSupport.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Common/FileSupport.cpp (.../FileSupport.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -22,6 +22,10 @@ #include "FileSupport.h" //#include "tchar.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + #pragma warning (disable: 4711) __int64 SetFilePointer64(HANDLE hFile, __int64 llDistance, DWORD dwMoveMethod) Index: Copy Handler/AboutDlg.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/AboutDlg.cpp (.../AboutDlg.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/AboutDlg.cpp (.../AboutDlg.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -24,6 +24,10 @@ #include "AboutDlg.h" #include "StaticEx.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + bool CAboutDlg::m_bLock=false; CAboutDlg::CAboutDlg() : CHLanguageDialog(CAboutDlg::IDD, NULL, &m_bLock) Index: Copy Handler/COPY HANDLER.cpp =================================================================== diff -u -r125baa60fb7ffbffa0a3b81802f1164f5123e919 -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/COPY HANDLER.cpp (.../COPY HANDLER.cpp) (revision 125baa60fb7ffbffa0a3b81802f1164f5123e919) +++ Copy Handler/COPY HANDLER.cpp (.../COPY HANDLER.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -28,6 +28,10 @@ #ifdef _DEBUG #define new DEBUG_NEW +#endif + +#ifdef _DEBUG +#define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif Index: Copy Handler/CfgProperties.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/CfgProperties.cpp (.../CfgProperties.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/CfgProperties.cpp (.../CfgProperties.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -20,6 +20,10 @@ #include "stdafx.h" #include "CfgProperties.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + bool RegisterProperties(CConfigManager* pManager) { pManager->RegisterBoolProperty(_T("Program"), _T("Enabled clipboard monitoring"), false); Index: Copy Handler/DataBuffer.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/DataBuffer.cpp (.../DataBuffer.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/DataBuffer.cpp (.../DataBuffer.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -20,6 +20,10 @@ #include "stdafx.h" #include "DataBuffer.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + bool BUFFERSIZES::operator==(const BUFFERSIZES& bsSizes) const { return (m_uiDefaultSize == bsSizes.m_uiDefaultSize Index: Copy Handler/DestPath.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/DestPath.cpp (.../DestPath.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/DestPath.cpp (.../DestPath.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -20,6 +20,10 @@ #include "stdafx.h" #include "DestPath.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + void GetDriveData(LPCTSTR lpszPath, int* piDrvNum, UINT* puiDrvType) { TCHAR drv[_MAX_DRIVE+1]; Index: Copy Handler/Dialogs.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/Dialogs.cpp (.../Dialogs.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/Dialogs.cpp (.../Dialogs.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -20,6 +20,10 @@ #include "stdafx.h" #include "dialogs.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + bool BrowseForFolder(LPCTSTR lpszTitle, CString* pResult) { // code allows browsing on all disks Index: Copy Handler/HelpLngDialog.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/HelpLngDialog.cpp (.../HelpLngDialog.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/HelpLngDialog.cpp (.../HelpLngDialog.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -22,6 +22,10 @@ #include "HelpLngDialog.h" #include "Copy Handler.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + ///////////////////////////////////////////////////////////////////////////// // CHLanguageDialog dialog Index: Copy Handler/StaticEx.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/StaticEx.cpp (.../StaticEx.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/StaticEx.cpp (.../StaticEx.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -20,6 +20,10 @@ #include "stdafx.h" #include "StaticEx.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + #define STATICEX_CLASS _T("STATICEX") LRESULT CALLBACK StaticExWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) Index: Copy Handler/StringHelpers.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/StringHelpers.cpp (.../StringHelpers.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/StringHelpers.cpp (.../StringHelpers.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -22,6 +22,10 @@ #include "StringHelpers.h" #include "stdio.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + #ifdef _MFC_VER void ExpandFormatString(CString* pstrFmt, DWORD dwError) { Index: Copy Handler/Structs.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/Structs.cpp (.../Structs.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/Structs.cpp (.../Structs.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -24,6 +24,10 @@ #include "..\common\FileSupport.h" #include "Copy Handler.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + // global int PriorityToIndex(int nPriority) { Index: Copy Handler/Theme Helpers.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/Theme Helpers.cpp (.../Theme Helpers.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/Theme Helpers.cpp (.../Theme Helpers.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -20,6 +20,9 @@ #include "stdafx.h" #include "Theme Helpers.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif CUxThemeSupport::CUxThemeSupport() { Index: Copy Handler/register.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/register.cpp (.../register.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/register.cpp (.../register.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -21,6 +21,10 @@ #include "register.h" #include "objbase.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + DWORD RegisterShellExtDll(LPCTSTR lpszPath, bool bRegister) { DWORD dwErr=0; Index: Copy Handler/shortcuts.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- Copy Handler/shortcuts.cpp (.../shortcuts.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ Copy Handler/shortcuts.cpp (.../shortcuts.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -20,6 +20,10 @@ #include "stdafx.h" #include "shortcuts.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + bool CShortcut::FromString(const CString& strText) { int iPos=strText.ReverseFind(_T('|')); Index: modules/App Framework/AppHelper.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- modules/App Framework/AppHelper.cpp (.../AppHelper.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ modules/App Framework/AppHelper.cpp (.../AppHelper.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -2,6 +2,10 @@ #include "AppHelper.h" #include "shlobj.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + CAppHelper::CAppHelper() { // read program paths Index: modules/App Framework/ConfigManager.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- modules/App Framework/ConfigManager.cpp (.../ConfigManager.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ modules/App Framework/ConfigManager.cpp (.../ConfigManager.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -25,6 +25,10 @@ #include "conv.h" #endif +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + #define CFG_PROFILE _T("Common") #define CFG_SECTION _T("Config") #define CFG_KEY _T("Current configuration name") Index: modules/App Framework/FileEx.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- modules/App Framework/FileEx.cpp (.../FileEx.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ modules/App Framework/FileEx.cpp (.../FileEx.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -25,6 +25,10 @@ #include "crypt.h" #endif +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + #pragma warning( disable : 4127 ) // serialization buffer add on every reallocation Index: modules/App Framework/IniFile.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- modules/App Framework/IniFile.cpp (.../IniFile.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ modules/App Framework/IniFile.cpp (.../IniFile.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -21,6 +21,10 @@ #include "stdafx.h" #include "IniFile.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + #define MAX_LINE 8192 /////////////////////////////////////////////////////////////// Index: modules/App Framework/LanguageDialog.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- modules/App Framework/LanguageDialog.cpp (.../LanguageDialog.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ modules/App Framework/LanguageDialog.cpp (.../LanguageDialog.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -21,6 +21,10 @@ #include "stdafx.h" #include "LanguageDialog.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + ///////////////////////////////////////////////////////////////////////////// // CDlgTemplate CDlgTemplate::CDlgTemplate(const DLGTEMPLATE* pDlgTemplate) Index: modules/App Framework/LogFile.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- modules/App Framework/LogFile.cpp (.../LogFile.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ modules/App Framework/LogFile.cpp (.../LogFile.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -22,6 +22,10 @@ #include "LogFile.h" #include "stdio.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + #pragma warning( disable : 4127 ) /////////////////////////////////////////////////////////////// Index: modules/App Framework/Plugin.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- modules/App Framework/Plugin.cpp (.../Plugin.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ modules/App Framework/Plugin.cpp (.../Plugin.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -20,6 +20,10 @@ #include "stdafx.h" #include "plugin.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + CPlugin::CPlugin(bool bInternal) { m_hModule=NULL; Index: modules/App Framework/PluginContainer.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- modules/App Framework/PluginContainer.cpp (.../PluginContainer.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ modules/App Framework/PluginContainer.cpp (.../PluginContainer.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -20,6 +20,10 @@ #include "stdafx.h" #include "PluginContainer.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + // member functions CPluginContainer::CPluginContainer() { Index: modules/App Framework/ResourceManager.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- modules/App Framework/ResourceManager.cpp (.../ResourceManager.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ modules/App Framework/ResourceManager.cpp (.../ResourceManager.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -21,6 +21,10 @@ #include "IniFile.h" #include "ResourceManager.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + CLangData::CLangData(const CLangData& ld) { szDefString=0; Index: modules/App Framework/TrayIcon.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- modules/App Framework/TrayIcon.cpp (.../TrayIcon.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ modules/App Framework/TrayIcon.cpp (.../TrayIcon.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -20,6 +20,10 @@ #include "stdafx.h" #include "TrayIcon.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + ///////////////////////////////////////////////////////////////////////////// // CTrayIcon construction/creation/destruction Index: modules/App Framework/crc32.cpp =================================================================== diff -u -r3e1186252ab31f63d86d86c4b0ff593cfffbefde -r7d997aef1e72f049ed1bc199e1b765d737d9963a --- modules/App Framework/crc32.cpp (.../crc32.cpp) (revision 3e1186252ab31f63d86d86c4b0ff593cfffbefde) +++ modules/App Framework/crc32.cpp (.../crc32.cpp) (revision 7d997aef1e72f049ed1bc199e1b765d737d9963a) @@ -1,6 +1,10 @@ #include "stdafx.h" #include "crc32.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + DWORD __CRC32Data__[256] = { 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA,