Hi.
My application on Communicator Nokia 9500 has error. The message looks like this
Program closed. Reason code: KERN-EXEC. Reason number: 3.
What should I do?
Hi.
My application on Communicator Nokia 9500 has error. The message looks like this
Program closed. Reason code: KERN-EXEC. Reason number: 3.
What should I do?
In most cases, KERN-EXEC 3 denotes a NULL pointer exception. You should try to check your uninitialized pointers and/or debug your code if it can be executed in the emulator.
Thanks.Originally Posted by wizard_hu_
But the problem is that the code is executed in the Emulator,
while error occurs when the code is executed in the Communicator.
I believed that the error resulted from char* type used.
But having changed void Preview(TInt aFontSize, char* aFmt1, ...) into
void Preview(TInt aFontSize, __e32_va_list aFmt1, ...) the code still runs in the Emulator succesfully, while the same error remains in the Communicator.
In this case, you should create a logfile, and see where the problem happen.
I'm new in Symbian, so tell me the simpliest way where to create a logfile, as well as the references how to create it?Originally Posted by wizard_hu_
1) Simple debug-msg method
User::InfoPrint(_L("Debug")); -->it doesnt work on S60 phones... not sure abt 9500
2) simple file-based method
//at the beginning of function
RFile file;
TBuf8<100>text8;
TBuf<100>text;
TInt fileSize;
file.Replace( CEikonEnv::Static()->FsSession(), _L("C:\\debug.txt"), EFileWrite );
CleanupClosePushL( file );
//where u want to add entry to log
file.Size( fileSize );
file.Seek( ESeekStart, fileSize );
text.Copy(aAddress);
text.Append( _L("\n") );
text8.Copy( text );
file.Write( text8 );
//at the end of function
CleanupStack::PopAndDestroy( &file );
Originally Posted by SymbianSandy
Many thanks I'll try this.