diff -r ca8a1b6995f6 -r 52e343bb8f80 memspy/CommandLine/Source/MemSpyCommandLineMain.cpp --- a/memspy/CommandLine/Source/MemSpyCommandLineMain.cpp Tue Aug 31 16:45:49 2010 +0300 +++ b/memspy/CommandLine/Source/MemSpyCommandLineMain.cpp Wed Sep 01 12:37:10 2010 +0100 @@ -25,7 +25,7 @@ // User includes #include "MemSpyCommandLine.h" -#include "MemSpyCommands.h" + // --------------------------------------------------------------------------- // DoMainL() @@ -38,27 +38,21 @@ CActiveScheduler* scheduler = new (ELeave) CActiveScheduler(); CActiveScheduler::Install( scheduler ); CleanupStack::PushL( scheduler ); - + // Get command line CCommandLineArguments* args = CCommandLineArguments::NewLC(); - - //-- - CConsoleBase* console = Console::NewL( KMemSpyCLIName, TSize( KConsFullScreen, KConsFullScreen ) ); - CleanupStack::PushL( console ); - //-- - + // Command line manager - CMemSpyCommandLine* commandLineMgr = CMemSpyCommandLine::NewLC( *console ); + CMemSpyCommandLine* commandLineMgr = CMemSpyCommandLine::NewLC(); // Play nicely with external processes RProcess::Rendezvous( KErrNone ); // Perform op - commandLineMgr->PerformOpL( *args ); - + commandLineMgr->PerformOpL( *args ); + // Tidy up - //CleanupStack::PopAndDestroy( 3, scheduler ); // scheduler, args, commandLineMgr - CleanupStack::PopAndDestroy( 4 ); // scheduler, args, console, commandLineMgr + CleanupStack::PopAndDestroy( 3, scheduler ); // scheduler, args, commandLineMgr }