关闭

微软软件也有字串处理的低级bug!

1376人阅读 评论(0) 收藏 举报

(WinCE/Windows Mobile/Platform Builder的几个bug)
1.【PB4.2致命的 Error PB2502 问题】
  新建的平台名称如果与BSP名称相同,则在加了应用程序(例子中Hello)后,build时提示如下错误并无法生成NK.bin。
  Error PB2502: The feature does not support this configuration.  The feature cannot be built.
  
  详细信息:
  --------------------Configuration: CAYMAN - CAYMAN-ARMV4 Win32 (WCE ARMV4) Release--------------------
  ...
  --------------------Configuration: Hello - Hello-ARMV4 WIN32 (WCE ARMV4) RELEASE--------------------
  Error PB2502: The feature does not support this configuration.  The feature cannot be built.
  
  其实本来正确时应为如下字串的:
  --------------------Configuration: CAYMAN - CAYMAN-ARMV4 Win32 (WCE ARMV4) Release--------------------
  ...
  --------------------Configuration: Hello - CAYMAN-ARMV4 Win32 (WCE ARMV4) Release--------------------
  可见:中间的BSP名被认为是平台项目名了,在中间的编译脚本或程序中处理字串时出错!搞笑的是连最后的Release都成了大写,哈哈。
  
  小结:平台名称不要取容易和BSP或CPU类型相同的字串!(此bug本人在PB5.0中未测试过)
  
  附:网上搜到的老外描述,很不错:
   PB2502 cause found
   The PBnnnn error codes are not documented, and I was recently annoyed
   by the 2502 error (in PB 4.2), whose message string is simply, "The
   feature does not support this configuration. The feature cannot be
   built." Not very meaningful. A check on the group archives returns
   several threads, none of which describe what the cause is.

   But I believe I have figured it out. In my case, it was occurring
   with a user feature I had copied to my new IDE platform. The platform
   gets built with configuration:
   --Configuration: BSP - PLATFORM Win32 (WCE x86) Debug--
   The user feature would *normally* be:
   --Configuration: FEATURE - PLATFORM Win32 (WCE X86) Debug--
   In the error case, the configuration was mangled like this:
   --Configuration: FEATURE - PLATFEATURE Win32 (WCE X86) Debug--
   where the platform name is a superset of the BSP name. Apparently
   there is a script that exchanges the BSP string with that of the
   feature. But stupidly, it does it to the whole string, rather than
   rebuild it from scratch or exchange only the beginning whole word.
   
   I suppose the moral is to make new projects have long and unique names
   (one not a subset of the other), at least until the bug in PB is
   fixed.


2. 【SmartPhone2005模拟器bug:竟然进入联系人菜单后能够支持鼠标(即触摸屏)】
(另外,我的PPC 2005英文模拟器触摸屏是好的,中文则触摸屏不能使用,说不定和这个现象有关系!)

3.【】

一下子忘了,以后补

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:126863次
    • 积分:1647
    • 等级:
    • 排名:千里之外
    • 原创:35篇
    • 转载:5篇
    • 译文:0篇
    • 评论:10条
    最新评论