From 0e7ecd727cda9a78ac7a82bdcdab43fd1211a350 Mon Sep 17 00:00:00 2001 From: Wanne Date: Sat, 27 Dec 2008 13:44:08 +0000 Subject: [PATCH] Disabled "Debug Memory Allocation On The Heap" for Debug Version (thx to Birdflu) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2462 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Standard Gaming Platform/sgp.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Standard Gaming Platform/sgp.cpp b/Standard Gaming Platform/sgp.cpp index 7fa31f28..8cda8770 100644 --- a/Standard Gaming Platform/sgp.cpp +++ b/Standard Gaming Platform/sgp.cpp @@ -826,7 +826,16 @@ int PASCAL HandledWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pC // Use this one ONLY if you're having memory corruption issues that can be repeated in a short time // Otherwise it will just run out of memory. //_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_DELAY_FREE_MEM_DF | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_ALWAYS_DF); - _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_EVERY_1024_DF); + + /****************************************************************************************************/ + /* */ + /* DEBUG MEMORY ALLOCATION ON THE HEAP : uncomment when required */ + /* ------------------------------------------------------------------------ */ + /* */ + /* _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_EVERY_1024_DF); */ + /* */ + /****************************************************************************************************/ + #endif ghInstance = hInstance;