×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    29

    Problem With TCommDbConnPref::SetIapId in Series60 2nd

    Hi.
    I do following steps to implement sending/receiving data via TCP in my application:
    1) Get list of availiable IAPs via CApSelect
    2) Trying to send test message to server using each iap in select
    3) If sending test message is successfull it means that this IAP is working and can be used to sending data
    4) With this simple functionality I get list of working IAPs.
    So, the main feature of this functionality is that user is not asked to choose particular IAP to use by application.
    I use standart code pattern to set IAP id:

    TCommDbConnPref prefs;
    prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
    prefs.SetIapId(aIapId);
    prefs.SetDirection(ECommDbConnectionDirectionOutgoing);
    prefs.SetBearerSet(ECommDbBearerGPRS);
    iRConn.Start(prefs,iStatus);
    SetActive();

    Anyway, it works fine in Series60 3rd edition, but in 2nd edition RConnection::Start ends with error and "Select IAP Dialog" is displayed. This problem appears only with several IAP id's from CApSelect list.
    So how can I handle this?

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

    Re: Problem With TCommDbConnPref::SetIapId in Series60 2nd

    For some funny reason there are two kinds of "IAP" id-s used in the device, try what happens if you insert a CApUtils::WapIdFromIapIdL between the CApSelect and RConnection stuff.

    Ooops, a general IPC rule: everything you pass to an asynchronous service must be available for the whole period of servicing the request. In simpler words: TCommDbConnPref has to be a member variable in this case, try this fix first, then the wapid-iapid conversion.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    29

    Re: Problem With TCommDbConnPref::SetIapId in Series60 2nd

    Quote Originally Posted by wizard_hu_ View Post
    For some funny reason there are two kinds of "IAP" id-s used in the device, try what happens if you insert a CApUtils::WapIdFromIapIdL between the CApSelect and RConnection stuff.

    Ooops, a general IPC rule: everything you pass to an asynchronous service must be available for the whole period of servicing the request. In simpler words: TCommDbConnPref has to be a member variable in this case, try this fix first, then the wapid-iapid conversion.
    Hi, wizard_hu. Thanks a lot for your answer. I mentioned that CApUtils::WapIdFromIapIdL fails when I try to convert id of IAP which forces my application to show dialog. So it can be used to determine if IAP is valid it this scope or not.

  4. #4
    Super Contributor
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346

    Re: Problem With TCommDbConnPref::SetIapId in Series60 2nd

    hi Dmitry_Tarasov, if u test, u will find, ur code is work on n6620, but not work on n70/n72, like wizard said, there are two kinds of "IAP" id-s, so you can use this link 4# code.

    I guess it will work on ur project.

    Reason is for my test, query OUTGOING_WCDMA, match iap id is not correct(on n70), need requery IAP table, find the IAP table id.

    so it is why my code query OUTGOING_WCDMA and IAP table.
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

Similar Threads

  1. Problem with S60 2nd Edition FP2 and mobility pack
    By alamatula in forum Mobile Java Games
    Replies: 0
    Last Post: 2008-07-24, 16:40
  2. Problem with S60 2nd Edition from Carbide Editor
    By nital_shah in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-07-12, 12:13
  3. Replies: 4
    Last Post: 2008-04-09, 06:44
  4. CreateLineByTypeL on series60 2nd FP3
    By grapentin in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-02-21, 11:33
  5. S60 2nd Compiling problem for ARMI .
    By nanara in forum Symbian
    Replies: 5
    Last Post: 2007-01-11, 14:08

Posting Permissions

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