Futher work on ensuring that all datatypes are initilizaed in OSG objects.

This commit is contained in:
Robert Osfield
2002-07-21 10:04:33 +00:00
parent 389dd8adbb
commit b23aea5173
5 changed files with 16 additions and 5 deletions

View File

@@ -169,7 +169,7 @@ sMStats m_getMemoryStatistics()
static bool alwaysValidateAll = false;
static bool alwaysLogAll = false;
static bool alwaysWipeAll = true;
static bool checkOnAllocations = true;
static bool checkOnAllocations = false;
static bool checkForUnitialized = false;
static bool cleanupLogOnFirstRun = true;
static const unsigned int paddingSize = 4;
@@ -269,6 +269,10 @@ sMStats m_getMemoryStatistics()
{
checkOnAllocations=true;
}
else
{
checkOnAllocations=false;
}
}
@@ -1010,7 +1014,7 @@ sMStats m_getMemoryStatistics()
{
// check that exists allocated units havn't been damaged.
if (checkOnAllocations || checkForUnitialized) m_validateAllAllocUnits();
if (checkOnAllocations) m_validateAllAllocUnits();
try
{