diff -r b58b1294947a -r 1ea875759131 memspy/CommandLine/Source/MemSpyCommandLineMain.cpp --- a/memspy/CommandLine/Source/MemSpyCommandLineMain.cpp Mon Jun 21 22:45:06 2010 +0100 +++ b/memspy/CommandLine/Source/MemSpyCommandLineMain.cpp Thu Jul 22 16:50:07 2010 +0100 @@ -25,7 +25,7 @@ // User includes #include "MemSpyCommandLine.h" - +#include "MemSpyCommands.h" // --------------------------------------------------------------------------- // DoMainL() @@ -38,21 +38,27 @@ 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(); + CMemSpyCommandLine* commandLineMgr = CMemSpyCommandLine::NewLC( *console ); // 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( 3, scheduler ); // scheduler, args, commandLineMgr + CleanupStack::PopAndDestroy( 4 ); // scheduler, args, console, commandLineMgr }