Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2008

    Please help.. regarding simple hellotext console application

    I am trying to make a simple application for s60, using Nokia SDK for s60 , 3rd Ed FP1.

    I Build the target and it is built successfully without any error. But when i try to run it, the emulaor doesnt launch and I get an error "An Internal Error occuredduring Launching"

    Please help me regarding it. What should I do. When i built a GUI application of Helloworld, it works fine... but this console application is not running..

    The Sourse Code is:

    ///// START of Scource Code
    // hellotext.cpp

    #include <e32base.h>
    #include <e32cons.h>

    LOCAL_D CConsoleBase* gConsole;

    // Real main function
    void MainL()
    gConsole->Printf(_L("Hello world!\n"));

    // Console harness
    void ConsoleMainL()
    // Get a console
    gConsole = Console::NewL(_L("Hello Text"),
    TSize(KConsFullScreen, KConsFullScreen));

    // Call function

    // Pause before terminating
    User::After(5000000); // 5 second delay

    // Finished with console

    // Cleanup stack harness
    GLDEF_C TInt E32Main()
    CTrapCleanup* cleanupStack = CTrapCleanup::New();
    TRAPD(error, ConsoleMainL());
    __ASSERT_ALWAYS(!error, User::Panic(_L("SCMP"), error));
    delete cleanupStack;
    return 0;
    ///////////////////// END of Source code

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2004
    Austin, TX USA

    Re: Please help.. regarding simple hellotext console application

    Have you tried starting with the "File > New > Symbian OS C++ Project > Basic Console Application" template? Also, when creating your debugger launch configuration be sure that the emulator path (the one pointing to EPOC.EXE) is blank. EPOC.EXE should not be specified for text console apps.


    Matt P.

Similar Threads

  1. Replies: 1
    Last Post: 2008-01-28, 11:54
  2. Listbox in a simple GUI application
    By alav in forum Symbian User Interface
    Replies: 12
    Last Post: 2007-12-05, 20:17
  3. Console Application Deployment
    By ticktock in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 6
    Last Post: 2007-02-19, 16:33
  4. console application to handle incoming query
    By cypher181 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-07-08, 07:58
  5. problem with simple application
    By zikman9 in forum Mobile Java General
    Replies: 1
    Last Post: 2003-08-11, 13:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts