1
0

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
This commit is contained in:
keyboard.osh@gmail.com 2013-03-24 16:49:55 +00:00
parent ae371e891f
commit 513d67025f

View File

@ -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");