×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    46

    Error in my program

    Hi i am new to symbian c++, I was trying to execute the program but i am getting panic.

    panic: KERN-EXEC 0

    I dont know why is giving this error.

    Mysta.exe is there in WINSCW/C/System/apps directory



    //code starts here
    #include <e32base.h>
    #include <e32cons.h>
    #include <e32std.h>
    LOCAL_D CConsoleBase* console;
    void LaunchProcessL()
    {
    _LIT(KMyExeFile,"c:\\system\\apps\\Mysta.exe");
    RProcess proc;

    proc.Create(KMyExeFile,KNullDesC);
    proc.Resume(); // start the process running
    User::After(2000000);
    proc.Close();

    }


    TInt E32Main()
    {
    __UHEAP_MARK;
    CTrapCleanup* cleanup = CTrapCleanup::New();
    TRAPD(createError, console = Console::NewL(_L("Hai"), TSize(KConsFullScreen,KConsFullScreen)));

    if (createError)
    return createError;
    TRAPD(err, LaunchProcessL());
    delete cleanup;

    __UHEAP_MARKEND;
    return 0;
    }
    //code ends here

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,698

    Re: Error in my program

    Try debuging your code in order to locate the line which fails.

Similar Threads

  1. Can a Symbian C++ client program communicate with a program residing on a webserver ?
    By razas in forum Symbian Networking & Messaging (Closed)
    Replies: 21
    Last Post: 2007-11-19, 17:33
  2. problem in a j2me program on Nokia 6630/6680
    By lappard in forum Mobile Java General
    Replies: 1
    Last Post: 2006-06-29, 01:43
  3. problem in j2me program on Nokia 6630/6680
    By lappard in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-06-28, 16:32
  4. Connecting Java(J2SE) program on PC with SymbianC++ program on mobile using bluetooth
    By dotmilind in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-03-25, 23:10
  5. Replies: 1
    Last Post: 2005-05-24, 02:26

Posting Permissions

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