This page was last modified 09:59, 21 January 2008.
Extended panic code
From Forum Nokia Wiki
If your application generates a panic it will be closed and an error note is shown by the OS: "Program closed:/n%S" where %S is your application's name.
In emulator, if just in time debugging is enabled, a panic will launch the debugger instead of displaying a panic note and terminating the thread. Some Symbian SDK releases have just in time debugging enabled by default. You can disable it by editing %EPOCROOT%\epoc32\data\epoc.ini and making sure the following line exists in the file:JustInTime 0
S60 1st and 2nd Edition
To get the emulator/device display the reason and error code for panics, create a zero-sized file named ErrRd (no file name extension) under the PC's directory %EPOCROOT%\epoc32\wins[cw|b]\c\system\bootdata\.
On the device, you should create a zero-sized file ErrRd (no file name extension) under the directory c:\system\bootdata\. You can use a file explorer application (for instance, FExplorer) to create the file, or if none is available, use a signed sis file.
S60 3rd Edition
To get the emulator/device display the reason and error code for panics, start the emulator, then open its Tools -> Preferences menu, and finally make sure the "Extended panic code file" option is checked on the C++ Debug tab. (This has the effect of creating a zero-sized file named ErrRd (no file name extension) under the PC's directory %EPOCROOT%\epoc32\wins[cw|b]\c\resource\.)
On the device, you should create a zero-sized file ErrRd (no file name extension) under the directory c:\resource\. You can use a file explorer application (for instance, FExplorer) to create the file, or if none is available, use a signed sis file. In case you don't want to use ErrRd, then you could also use Y-Tasks Crash monitor.
You can obtain a prebuilt sis file from here
The results
Once this file is created, the error note shown by the OS would look like: "Program closed:/n%S/n%S %d" where the second %S is replaced by the panic reason (for example, USER, KERN-EXEC, etc.) and %d would be replaced by the panic code.
Note: The panic reason and code are only shown on this error note; they are NOT logged into the ErrRd file.
A quick search in SDK's help and you will find a hint on the kind of programming error you should be hunting for in your code.
When reporting an application crash, either on Forum Nokia's Discussion Boards or to Forum Nokia's Technical Support service, please add the panic reason and code to the problem description.
Refer to the following link for: Symbian OS Error Codes.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SDK 3rd Edtion FP1 | campa82 | Mobile Java Tools & SDKs | 1 | 2007-03-01 04:38 |
| My autostart app got breakpoint error!! | zerglim | General Symbian C++ | 3 | 2004-07-29 06:26 |
| N6310i and code page | petrvo | Mobile Java General | 1 | 1970-01-01 02:00 |
| How to read text file line by line? | aluzi | General Symbian C++ | 12 | 2008-03-25 13:06 |
| signing freeware with extended capabilities | Jeepy | Symbian Signing, Certification and Security | 6 | 2007-01-29 10:10 |

