harvester/server/src/harvesterserver.cpp
branchRCL_3
changeset 19 b73252188534
parent 18 63c982fb92f2
child 20 f23c07ec56e2
equal deleted inserted replaced
18:63c982fb92f2 19:b73252188534
   160 CHarvesterServer* CHarvesterServer::NewLC()
   160 CHarvesterServer* CHarvesterServer::NewLC()
   161 	{
   161 	{
   162     WRITELOG( "CHarvesterServer::NewLC() - begin" );
   162     WRITELOG( "CHarvesterServer::NewLC() - begin" );
   163     
   163     
   164 	CHarvesterServer* self = new (ELeave) CHarvesterServer(
   164 	CHarvesterServer* self = new (ELeave) CHarvesterServer(
   165 			CActive::EPriorityUserInput, KHarvesterServerPolicy, 
   165 	        KHarvesterServerSessionPriority, KHarvesterServerPolicy, 
   166 			ESharableSessions );
   166 			ESharableSessions );
   167 	CleanupStack::PushL( self );
   167 	CleanupStack::PushL( self );
   168 	self->ConstructL();
   168 	self->ConstructL();
   169 	return self;
   169 	return self;
   170 	}
   170 	}
   442     {
   442     {
   443     WRITELOG( "CHarvesterServer::~CHarvesterServer()" );
   443     WRITELOG( "CHarvesterServer::~CHarvesterServer()" );
   444     OstTrace0( TRACE_NORMAL, CHARVESTERSERVER_CHARVESTERSERVER, "CHarvesterServer::~CHarvesterServer" );
   444     OstTrace0( TRACE_NORMAL, CHARVESTERSERVER_CHARVESTERSERVER, "CHarvesterServer::~CHarvesterServer" );
   445     
   445     
   446     delete iHarvesterAO;
   446     delete iHarvesterAO;
       
   447     iHarvesterAO = NULL;
   447     delete iPauseObserverAO;
   448     delete iPauseObserverAO;
       
   449     iPauseObserverAO = NULL;
   448     delete iShutdownObserver;
   450     delete iShutdownObserver;
       
   451     iShutdownObserver = NULL;
   449     OstTrace0( TRACE_NORMAL, DUP1_CHARVESTERSERVER_CHARVESTERSERVER, "CHarvesterServer::~CHarvesterServer end" );
   452     OstTrace0( TRACE_NORMAL, DUP1_CHARVESTERSERVER_CHARVESTERSERVER, "CHarvesterServer::~CHarvesterServer end" );
   450     
   453     
   451     WRITELOG( "CHarvesterServer::~CHarvesterServer() end" );
   454     WRITELOG( "CHarvesterServer::~CHarvesterServer() end" );
   452     }
   455     }
   453 
   456