×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    115

    function with RCmManager that doesn't work well.

    Hi all,
    More users says me that my application doesn't work.
    I discovered that the problem appear only in some devices. In some device doesn't work also with the same firmware of device where it works. And in the devices where doesn't work, it doesn't work also after an hard reset.

    The problem is that this function leave with KErrNotSupported, but I don't know why.

    Unfortunatly in my device the function works very well and don't understand the problem.

    Code:
    TInt IapManager::idFromSsid(QString ssid)
    {
        TInt id;
        RCmManager cmManager;
    
        cmManager.OpenL();
        CleanupClosePushL(cmManager);
    
        RArray<TUint32> allId;
        cmManager.ConnectionMethodL(allId,EFalse,EFalse,ETrue);
    
        bool trovato=false;
    
        
    
        TInt err;
        for(int i=0;i<allId.Count();i++)
        {
            RCmConnectionMethod cm=cmManager.ConnectionMethodL(allId[i]);
            CleanupClosePushL(cm);
    
            HBufC* ssidH=NULL;
            
            TRAP(err,ssidH=cm.GetStringAttributeL(CMManager::EWlanSSID));
    
            if(err==KErrNone)
            {
                QString ssidLetto((QChar*)ssidH->Des().Ptr(),ssidH->Length());
                if(ssidLetto==ssid)
                {
                    TRAP(err,id=cm.GetIntAttributeL(CMManager::ECmIapId));
                    trovato=true;
                    delete ssidH;
                    ssidH=NULL;
                    CleanupStack::PopAndDestroy(&cm);
                    break;
                }
            }
    
            if(ssidH)
            {
                delete ssidH;
                ssidH=NULL;
            }
    
            CleanupStack::PopAndDestroy(&cm);
        }
    
        CleanupStack::PopAndDestroy(&cmManager);
    
        if(trovato)
        {
            if(err==KErrNone)
                return id;
            else
                return -1500;
        }
    
        return KErrNotFound;
    
    
    
    }
    What can I change? and why it works and doesn't work in identical devices?
    Last edited by andrea993; 2013-04-06 at 16:55.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: function with RCmManager that doesn't work well.

    You may want to consider finding out which line actually leaves.

  3. #3
    Registered User
    Join Date
    Apr 2011
    Posts
    115

    Re: function with RCmManager that doesn't work well.

    I can't because I have only read emails about this problem, but I have not a problematic phone

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,089

    Re: function with RCmManager that doesn't work well.

    RDA might be of help in that case(of course if that is supported on virtual devices)

Similar Threads

  1. RCmManager System Error(-1)
    By dgaur in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2010-02-01, 06:33
  2. Replies: 1
    Last Post: 2008-11-20, 08:45
  3. Replies: 4
    Last Post: 2007-05-24, 04:06
  4. Calling connect and sending function in sequence doesn't work
    By tatomi00 in forum Bluetooth Technology
    Replies: 5
    Last Post: 2004-07-05, 10:45
  5. Nokia 5210 BUG: AT+CPBR DOESN'T WORK!! So what other AT cmd doesn't???
    By g3v70 in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2004-02-20, 14:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×