Hi Everybody,

Now a days i am testing my application with lowmem test tool, for symbian signed certification. My Test result are like this,

Test Count = 95
Test Fail = 60%
MemLeak = 41

But after gone through my code i come to know there is no memory leak and failure code. Can anybody please tell me what and how this Lowmem Test tool detects Test Fail?
Any sample code or example will be helpful.

Here i am giving my sample code in which has 4% of Test Fail. If i comment this code the test result will become like this,

Test Count = 95
Test Fail = 56%
MemLeak = 41

/****************************** Code Start******************************/

if(iData->iSkinList==NULL)
iData->iSkinList= new CDesCArrayFlat(3);
iData->iSkinList->Reset();
TBuf<128> rDes;

if (iDataDrive==_L("C:"))
{
iCoeEnv->ReadResource(rDes, R_SKINS_PATH_C);
}
else if(iDataDrive==_L("E:"))
{
iCoeEnv->ReadResource(rDes, R_SKINS_PATH_E);
}
else
{
iCoeEnv->ReadResource(rDes, R_SKINS_PATH_C);
}

iSkinFileDir.Copy(rDes);

TBuf<128> test;

RFs session;
User::LeaveIfError(session.Connect());

CDirScan* ds = CDirScan::NewLC(session);

TRAPD(err,ds->SetScanDataL(iSkinFileDir,KEntryAttNormal,ESortByName|EAscending,CDirScan::EScanDownTree));
if (err!=KErrNone) {
session.Close();
CleanupStack::PopAndDestroy();
return;
}

CDir* c=0;

HBufC* fullname = HBufC::NewLC(512);

for(; {
ds->NextL(c);
if (c==0) break;

for (TInt i=0; i<c->Count(); i++)
{
const TEntry e= (*c)[i];

fullname->Des().Copy(ds->FullPath());
fullname->Des().Append(e.iName);

TParsePtrC p(fullname->Des());

if (p.Ext()==_L(".skn") || p.Ext()==_L(".SKN")) {
iData->iSkinList->AppendL(p.NameAndExt());
if (iData->iSkinList->Count()==10) break;
}
}
delete c; c=NULL;
}

CleanupStack::PopAndDestroy(2);
session.Close();

/****************** Code End******************************/

How we developer will come to know that what exactly this lowmem want us to do?

Thanks for your time