* Copyright (C) Zhu Shuanglei <shuanglei@hotmail.com>
* Copyright Martin Westergaard Jørgensen <martinwj2005@gmail.com>
* Copyright 2009, 2010 Daniël Niggebrugge <niggebrugge@fox-it.com>
* Copyright (C) Zhu Shuanglei <shuanglei@hotmail.com>
* Copyright Martin Westergaard Jørgensen <martinwj2005@gmail.com>
* Copyright 2009, 2010 Daniël Niggebrugge <niggebrugge@fox-it.com>
if (nAvailPhys < 16 * 1024 * 1024)
{
nAvailPhys = 512 * 1024 * 1024; // There is atleast 256 mb available (Some Linux distros returns a really low GetAvailPhysMemorySize()
if (nAvailPhys < 16 * 1024 * 1024)
{
nAvailPhys = 512 * 1024 * 1024; // There is atleast 256 mb available (Some Linux distros returns a really low GetAvailPhysMemorySize()
#ifdef _MEMORYDEBUG
printf("Allocating %i bytes of memory - ", nTargetSize);
#endif
m_pMem = new (nothrow) unsigned char[nTargetSize];
#ifdef _MEMORYDEBUG
printf("Allocating %i bytes of memory - ", nTargetSize);
#endif
m_pMem = new (nothrow) unsigned char[nTargetSize];