From 513d67025f5090c8e132b6c75a7f2b031b773c68 Mon Sep 17 00:00:00 2001 From: "keyboard.osh@gmail.com" Date: Sun, 24 Mar 2013 16:49:55 +0000 Subject: Changed memory leak detection value to 65970823. Also added support for compiling in Visual Studio 2012. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1309 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/LeakFinder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/LeakFinder.cpp') diff --git a/source/LeakFinder.cpp b/source/LeakFinder.cpp index aa7848b65..df4aff613 100644 --- a/source/LeakFinder.cpp +++ b/source/LeakFinder.cpp @@ -108,7 +108,7 @@ #include "LeakFinder.h" // Currently only tested with MS VC++ 5 to 10 -#if (_MSC_VER < 1100) || (_MSC_VER > 1600) +#if (_MSC_VER < 1100) || (_MSC_VER > 1700) #error Only MS VC++ 5/6/7/7.1/8/9 supported. Check if the '_CrtMemBlockHeader' has not changed with this compiler! #endif @@ -887,7 +887,7 @@ static int MyAllocHook(int nAllocType, void *pvData, { g_CurrentMemUsage += nSize; - if (g_CurrentMemUsage > 1024 * 1024 * 1024) + if (g_CurrentMemUsage > 65970823)//1024 * 1024 * 1024) { printf("******************************************\n"); printf("** Server reached 1 GiB memory usage, **\n"); -- cgit v1.2.3