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



