Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

防止资源文件枚举值中出现保留ID值

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台: S60 (all)

文章
翻译:
huwell
最后由 hamishwillee 在 06 Aug 2012 编辑
  • 详细描述

如果菜单项命令ID和对话框项ID值为0,那么将引发崩溃,而且这样的错误很难定位和debug。


  • 解决方案

注意一定不要让MENU_ITEM命令ID为0,因为0是EEikCmdCanceled的保留值。


同样的,对话框项(DLG_LINE)ID必须也要为非零值。如果为0的话将会引发Eikon-Dialog 3崩溃错误。这里3表示的是EEikDialogPanicFocusableLineWithIdZero。


注意,程序定义资源ID值如果从0开始的话,就会引发这样的错误。而这样的错误是极难定位的。

This page was last modified on 6 August 2012, at 07:29.
51 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×