I have got the following routine to scale the image
if ( iScaler )
iScaler = NULL;
iScaler = CBitmapScaler::NewL();
TInt error=iScaledBitmap->Create(iSize, EColor64K);
iScaler->UseLowMemoryAlgorithm(ETrue);//make sure it does not requiremed with so much memory
iScaler->Scale(&iStatus, *iBitmap, *iScaledBitmap, ETrue);
but in the RunL..
I check the status, it is equals to -4, which means that there is no Memory avaiable and idecode_state=Scalings...if it is really no memory, does not it generate this error in the iScaledBitmap->Create(iSize, EColor64K) and idecode_state=Err?? as Create should return KErrNoMemory
when there is not enough memory..