lafagnosticuifoundation/bmpanimation/tef/Tanctl.cpp
branchRCL_3
changeset 18 0aa5fbdfbc30
parent 0 2f259fa3e83a
child 55 aecbbf00d063
--- a/lafagnosticuifoundation/bmpanimation/tef/Tanctl.cpp	Wed Apr 14 16:14:00 2010 +0300
+++ b/lafagnosticuifoundation/bmpanimation/tef/Tanctl.cpp	Tue Apr 27 16:55:05 2010 +0300
@@ -134,11 +134,14 @@
 	const TInt maskId = aFramesReader.ReadInt16();
 	if (bmpId >= 0)
 		{
-		CFbsBitmap* bitmap = iEikonEnv->CreateBitmapL(aFileName, bmpId);
+        // Create a bitmap with no error dialog - the 3rd argument of CEikonEnv::CreateBitmapL is to decide whether
+        // or not to show a error dialog on failure. With this option, it leaves with KErrExtendedWkithText if the creation of 
+        // bitmap fails. For this test we do not need this error dialog and we expect the raw error code (i.e. KErrNoMemory).
+		CFbsBitmap* bitmap = iEikonEnv->CreateBitmapL(aFileName, bmpId, EFalse);
 		frameData->SetBitmap(bitmap);
 		if (maskId >= 0)
 			{
-			CFbsBitmap* mask = iEikonEnv->CreateBitmapL(aFileName, maskId);
+			CFbsBitmap* mask = iEikonEnv->CreateBitmapL(aFileName, maskId, EFalse);
 			frameData->SetMask(mask);
 			}
 		}