serialserver/c32serialserver/Test/TE_C32/util/src/c32loader.cpp
branchRCL_3
changeset 70 b564fb5fd78b
parent 69 9d7ce34704c8
equal deleted inserted replaced
69:9d7ce34704c8 70:b564fb5fd78b
    49 	//Load the drivers first..No use starting C32 without them (only on harware)
    49 	//Load the drivers first..No use starting C32 without them (only on harware)
    50 	result = User::LoadPhysicalDevice(PDD_NAME);
    50 	result = User::LoadPhysicalDevice(PDD_NAME);
    51 	if (result!=KErrNone && result!=KErrAlreadyExists)
    51 	if (result!=KErrNone && result!=KErrAlreadyExists)
    52 		{
    52 		{
    53 		__FLOG_1(_L("Could not load PDD! Leaving with error %d."), result);
    53 		__FLOG_1(_L("Could not load PDD! Leaving with error %d."), result);
    54 //		return result;
    54 		return result;
    55 		}
    55 		}
    56 
    56 
    57 	result=User::LoadLogicalDevice(LDD_NAME);
    57 	result=User::LoadLogicalDevice(LDD_NAME);
    58 	if (result!=KErrNone && result!=KErrAlreadyExists)
    58 	if (result!=KErrNone && result!=KErrAlreadyExists)
    59 		{
    59 		{
    60 		__FLOG_1(_L("Could not load LDD! Leaving with error %d."), result);	
    60 		__FLOG_1(_L("Could not load LDD! Leaving with error %d."), result);	
    61 //		return result;
    61 		return result;
    62 		}
    62 		}
    63 #endif
    63 #endif
    64 	// Warm-boot the Comms Process, but avoid loading the Phonebook Synchronizer
    64 	// Warm-boot the Comms Process, but avoid loading the Phonebook Synchronizer
    65 	aHarnessLogger->Log(_L("Starting C32Start warm-boot"));
    65 	aHarnessLogger->Log(_L("Starting C32Start warm-boot"));
    66 	_LIT(KPhbkSyncCMI, "phbsync.cmi");
    66 	_LIT(KPhbkSyncCMI, "phbsync.cmi");
   307 		}
   307 		}
   308 	#endif
   308 	#endif
   309 	// LEave with last seen error, if any
   309 	// LEave with last seen error, if any
   310 	if(err!=KErrNone)
   310 	if(err!=KErrNone)
   311 		{
   311 		{
   312 //		User::Leave(err);
   312 		User::Leave(err);
   313 		}
   313 		}
   314 		
   314 		
   315 	if (checkForLeaks)
   315 	if (checkForLeaks)
   316 		{
   316 		{
   317 		TInt leakVal2;
   317 		TInt leakVal2;