Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User gparthi's Avatar
    Join Date
    Aug 2005
    Posts
    17
    i am getting KERN-EXEC 0 on the emulator,when using RWSPCOConn for WAP connection.
    i have given my code below.Anyone pls help out to solve this issue.

    regards,
    Parthi

    RWSPCOConn iWapConn;
    RWAPServ iWapServ;
    RWSPCOTrans trans;
    TInt ret;
    TBuf8<1024> data;
    RWSPCOConn::TEvent event;
    iWapConn.Open(iWapServ, _L8("203.177.42.214"), 9201, 0, EIP, EFalse);

    CCapCodec* codec = CCapCodec::NewL();
    codec->SetServerSDUSize(150000);
    codec->SetClientSDUSize(150000);

    if(iWapConn.Connect(_L8(""), codec) == KErrNone)

    {
    if(iWapConn.CreateTransaction(RWAPConn::EGet, _L("http://www.yahoo.com/index.html"), _L8(""), _L8(""), trans) == KErrNone)
    {
    do
    {
    ret = trans.GetData(data, RWSPCOTrans::EResultBody);
    // returns access denied here!
    }
    while(ret == RWAPConn::EMoreData);
    trans.Release();
    }

  2. #2
    Regular Contributor giridharn's Avatar
    Join Date
    Oct 2004
    Location
    india
    Posts
    306
    hi,
    gparthi..

    generally r classes must be intially connect to use its services..
    here also
    for RWSpCOConn...use connect function to connect to its session
    to use its servicess

    Bye
    N

  3. #3
    Registered User gparthi's Avatar
    Join Date
    Aug 2005
    Posts
    17
    that's fine giri,
    but my issue is the error KERN-EXEC 0
    Any idea abt it ???

  4. #4
    Regular Contributor giridharn's Avatar
    Join Date
    Oct 2004
    Location
    india
    Posts
    306
    hi,

    kern-exec0 error occurs when app tries to call a object..which is not yet iniitialised properly(somethng like this)

    may be probable reason for ur app crah is

    in ur code

    RWAPServ iWapServ;
    if(iWapServ.Connect() == KErrNone)///include this line
    {
    iWapConn.Open(iWapServ, _L8("203.177.42.214"), 9201, 0, EIP, EFalse);

    CCapCodec* codec = CCapCodec::NewL();
    codec->SetServerSDUSize(150000);
    codec->SetClientSDUSize(150000);

    if(iWapConn.Connect(_L8(""), codec) == KErrNone)

    {
    if(iWapConn.CreateTransaction(RWAPConn::EGet, _L("http://www.yahoo.com/index.html"), _L8(""), _L8(""), trans) == KErrNone)
    {
    do
    {
    ret = trans.GetData(data, RWSPCOTrans::EResultBody);
    // returns access denied here!
    }
    while(ret == RWAPConn::EMoreData);
    trans.Release();
    }

  5. #5
    Registered User gparthi's Avatar
    Join Date
    Aug 2005
    Posts
    17
    hi,
    thanks it is working .

    but i am not able to get the response,

    how can i check the ip i used is a valid gateway.
    the ip i used is 207.232.99.109 which is WAPtunnel's public gateway

    Pls help/suggest me the same.



    regards,
    Parthi

  6. #6
    Regular Contributor giridharn's Avatar
    Join Date
    Oct 2004
    Location
    india
    Posts
    306
    hi
    gparthi,

    chk this code of mine

    http://discussion.forum.nokia.com/fo...ght=rwspcoconn

    bye
    N

  7. #7
    Registered User gparthi's Avatar
    Join Date
    Aug 2005
    Posts
    17
    Hi,
    The code is working when using one service provider(airtel) for gprs,but not on Singtel networks.
    Do we need to change the format of the request.
    Any ideas/help is really appreciable.

    The gateway IP i used is 66.36.250.14,which is a public gateway.
    and the port is : 9201

    Regards,
    Parthi

Similar Threads

  1. Replies: 2
    Last Post: 2007-07-19, 01:29
  2. why kern exec 3 on CopyFile?
    By flicker82 in forum Symbian C++
    Replies: 2
    Last Post: 2005-05-16, 02:25
  3. please help! setting page issue (checkbox) kern exec 3
    By flicker82 in forum Symbian User Interface
    Replies: 4
    Last Post: 2005-02-10, 12:57
  4. KERN EXEC 3 system Error
    By pankajmahto in forum Symbian C++
    Replies: 7
    Last Post: 2004-05-24, 04:03
  5. DirectGraphics/fillPolygon and KERN - EXEC 3 on 7650
    By andrew_nevick in forum Mobile Java General
    Replies: 0
    Last Post: 2003-03-03, 09:15

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