symbian 程序缺少能力时的一个查找方法

本文介绍如何配置及解读S60模拟器的日志文件Epocwind.out,包括日志文件的位置、启用方法、格式说明及平台安全检查失败时的日志样例。

从诺基亚的wiki搜到的,记录一下

Description

Epocwind.out is the log file created by the S60 emulator . By default it is located under the user's temporary directory (Usually C:/Documents and Settings/[Username]/Local Settings/Temp )(under Windows XP)//文件在这个目录下

For the file to be created,

"Enable EPOCWIND.OUT logging" must be enabled under the C++ Debug tab of the preferences dialog of the emulator window.

要让EPOCWIND.OUT 记录东西,需要在模拟器的 c++ debug的tab项里勾选 Enable EPOCWIND.OUT logging。

Epocwind.out is a text file and you can open it in any text editor to check logs created by emulator.

Format

The file starts by listing the parameters of the emulator :

  • PlatSecEnforcement: The emulator is emulating platform security, and calls that to functions without sufficient capabilities on the part of the program will fail the same way they would on the device.
  • PlatSecDiagnostics: The emulator will add debugging messages to Epocwind.out if a program tries to call functions for which is doesn't have sufficient capabilities . If PlatSecEnforcement , above, is disabled, the call will still succeed.
  • PlatSecProcessIsolation: Certain kernel APIs can allow insecure actions, for example a thread in one process terminating a thread in another process. If enabled, run-time checks by the kernel enforce the correct usage of these APIs.
  • PlatSecEnforceSysBin: The executable loader will only look for and load files in the Sys/Bin directory. If a different path has been specified, it will be ignored.
  • PlatSecDisabledCaps: A list of the disabled capabilities in the emulator . None by default. This works differently than you might think: disabled capabilities are all granted to every binary run on the emulator at default, so calls using these capabilities will always succeed.

Most of these settings can be changed when running the emulator under the Platform Security tab of the preferences dialog.

The remainder of the file is a timestamped list of debug messages from the emulator and programs running in the emulator .

Platform Security Messages

When a platform security check fails, and PlatSecDiagnostics is enabled (see above), the log will contain a message starting with the words "*PlatSec* WARNING" and then specifying the details of the call and why it failed - for example:

  *PlatSec* WARNING - Capability check would have failed - 
A Message (function number=0x00000001) from Thread
AddressBook[a0000180]0001::AddressBook, sent to Server !Sen,
was checked by Thread Sen.EXE[101f96f4]0001::Main
and was found to be missing the capabilities: NetworkServices 首先删除
Epocwind.out
这个文件
打开Epocwind.out这个文件搜索 capabilities这个,就能找到缺少的能力

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值