Discussion Board

Results 1 to 5 of 5
  1. #1
    Super Contributor ivey's Avatar
    Join Date
    Jun 2006
    Location
    Moscow, Russia
    Posts
    803
    Hi,

    I have problems with using RComm. RComm::Open() always returns KErrPermissionDenied both on device and on emulator. Epocwnd.out always contains the same error message whatever capabilities I set when trying on emulator:
    *PlatSec* ERROR - Capability check failed - A Message (function number=0x00000007) from Thread XX.exe[XXXXXXXX]0001::Main, sent to Server !CommServer, was checked by Thread c32exe.exe[101f7989]0001::CCommServer and was found to be missing nothing. (An 'always fail' policy check).
    In my opinion this message looks quite strange. Does anybody know what capability is required to use RComm?

    Thanks,
    ivey

  2. #2
    Nokia Developer Moderator enstedt's Avatar
    Join Date
    Mar 2003
    Location
    Tampere, Finland
    Posts
    1,113
    This is what it says in the Doxygen Analysis of capabilities for Configuration GT_9.1 in the SDK help:

    "Capabilities required depend on the port type specified. Bluetooth and Infrared ports: LocalServices, RS232 serial port: None"

  3. #3
    Super Contributor ivey's Avatar
    Join Date
    Jun 2006
    Location
    Moscow, Russia
    Posts
    803
    Hi,

    thanks for your reply. I am trying to open a serial port (DATAPORT::2). Why do I always get KErrNotSupported then?
    Regards,
    ivey

  4. #4
    Regular Contributor boumitran's Avatar
    Join Date
    Dec 2005
    Location
    Bangalore, India
    Posts
    90
    Hi,

    RComm::Open() returns

    KErrPermissionDenied if the port given in aName is wrong; KErrNotSupported if this port is not supported by the CSY or the hardware; KErrLocked if the port has already been opened
    Best Regards
    -Boumitran

  5. #5
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,744
    Is it sure that DATAPORT::2 exists? What does TSerialInfo say?

Similar Threads

  1. Nokia member!! What is Illegal capability?
    By kkrish in forum Symbian C++
    Replies: 1
    Last Post: 2006-08-24, 12:10
  2. TCB capability problem
    By ivyliolia in forum Symbian C++
    Replies: 3
    Last Post: 2006-07-18, 15:18
  3. What is Illegal Capability
    By Roose in forum Symbian C++
    Replies: 2
    Last Post: 2006-03-09, 15:07
  4. Nokia 770 capability profile?
    By mniemine in forum General Development Questions
    Replies: 1
    Last Post: 2005-11-27, 20:25
  5. Capability Negotiation
    By liy2000 in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2005-01-19, 07:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved