Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 11:45, 19 February 2008.

RComm::Open()返回KErrPermissionDenied

From Forum Nokia Wiki

  • 标题:RComm::Open()返回KErrPermissionDenied

TSS000472

  • 开发伙伴平台:

S60 3rd Edition, S60 3rd Edition FP1


  • 详细描述

当我们试图打开一个从CSD数据呼叫中租借的dataport时,RComm::Open()就会返回KErrPermissionDenied错误。文档中指明如果要使用这个方法则需要LocalServices能力,但事实上这样也无济于事。


SDK文档中所描述的RComm::Open()方法并不完整,实际所需的能力需要根据使用中的通信模式(*.CSY)来定夺。在特定的使用环境下,DATAPORT.CSY模式被使用时,则其呼叫处理需要如下能力:NetworkServices, NetworkControl和CommDD.


对其他CSY模式来说,安全设置则比较松懈:

- BTCOMM.CSY 需要 LocalServices
 
- IRCOMM.CSY 需要 LocalServices
 
- ECUART.CSY 不需要任何能力
Related Discussions
Thread Thread Starter Forum Replies Last Post
[moved] Couldn't launch Serial connection plz help mhmd_ward General Symbian C++ 8 2008-06-19 21:58
Application exit without panic code strike_noir General Symbian C++ 5 2008-01-15 08:54
after use RCall::LoanDataPort() chinazou305 Symbian Networking & Messaging 2 2002-11-27 06:54
how to open notepad file through python code? sagars Python 4 2008-06-07 10:04
getting KErrNotReady when trying to reopen an RSocket object paranr Symbian Networking & Messaging 0 2008-04-14 19:32
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX