Avoid reserved IDs in Symbian resource file enumerations (Known Issue)
m (Protected "TSS000199 - Avoid reserved IDs in resource file enumerations" [edit=sysop:move=sysop]) |
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot change of template (Template:KnowledgeBase) - now using Template:ArticleMetaData) |
||
| Line 5: | Line 5: | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
{{KBKI}} | {{KBKI}} | ||
| − | {{ | + | {{ArticleMetaData |
|id=TSS000199 | |id=TSS000199 | ||
|platform= S60 (all) | |platform= S60 (all) | ||
| Line 13: | Line 13: | ||
|creationdate=April 7, 2005, updated October 14, 2008 | |creationdate=April 7, 2005, updated October 14, 2008 | ||
|keywords= | |keywords= | ||
| + | |||
| + | |sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) --> | ||
| + | |installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) --> | ||
| + | |sdk=<!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) --> | ||
| + | |devicecompatability=<!-- Compatible devices (e.g.: All* (must have GPS) ) --> | ||
| + | |signing=<!-- Empty or one of Self-Signed, DevCert, Manufacturer --> | ||
| + | |capabilities=<!-- Capabilities required (e.g. Location, NetworkServices.) --> | ||
| + | |author=[[User:Technical writer 1]] | ||
}} | }} | ||
Revision as of 14:42, 24 June 2011
Article Metadata
Compatibility
Article
Overview
Menu item command IDs and dialog item ID values of 0 will cause problems which may be hard to identify and debug.
Detailed description
Menu item (RESOURCE MENU_ITEM) command IDs and dialog item (RESOURCE DLG_LINE) will cause problems which may be hard to identify and debug if 0 is used as the ID value.
Solution
Always use a non-zero value for MENU_ITEM command IDs, because 0 is reserved for the EEikCmdCanceled command.
Similarly, a dialog's item (DLG_LINE) IDs must be non-zero. Dialog items with a zero ID will result in "Eikon-Dialog 3" panic, where 3 is listed as EEikDialogPanicFocusableLineWithIdZero.
Typically, applications define resource ID values as enumerations and a common mistake is to begin the enumeration from 0 (default), which leads to these hard-to-identify problems.

