×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    esock 14 in iSocket.Write

    Hello
    I ve got the following problem:
    i get time to time esock 14 error in my socket write class
    it is AO with following 2 classes:

    void CSocketWrite::Write(RSocket& aSocket, const TDesC8& aNapis )
    {
    _LIT(KLOGST,"CSocketWrite::WriteStart");
    iView.iView.LogCode (KLOGST);
    iSocket=aSocket;
    iNapis.Zero();
    iNapis.Copy(aNapis);
    Cancel();

    while (iStatus!=KErrNone);
    iSocket.Write (aNapis, iStatus);
    _LIT(KLOGST1,"CSocketWrite::WriteEnd");
    iView.iView.LogCode (KLOGST1);
    SetActive ();
    }
    }
    void CSocketWrite::RunL()
    {
    _LIT(KLOGST,"CSocketWrite::RunL");
    iView.iView.LogCode (KLOGST);
    if ( iStatus.Int () == KErrNone )
    {

    }
    else
    {
    iView.CommandWriteFail ();
    }
    }

    this panic occures when setactive is active (in my log i can find CSocketWrite::WriteEnd which is at the end of write function)

    What may cause this error?
    How can i solve it?

    There are threads on this forum showing how to solve esock 14 but in recv method, but how about write ??

    Pleas don t post thing like it is descriptor error cuz i know it i have no idea what is wrong in my code

    thanks in advance
    Nuker

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

    Re: esock 14 in iSocket.Write

    It is just a minor bug: you copy the descriptor to iNapis, as you should do, but in the Write statement you pass aNapis, which is probably going to be invalid after some time.
    Otherwise I am not sure if the iSocket=aSocket is a good idea. And it may be unnecessary too.

  3. #3
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    Re: esock 14 in iSocket.Write

    ohhhh
    few hours ago i have added that iNapis and forgot to change it in function
    thanks for advie i ll test it

    I have got that iSocket=aSocket because i have got in AO Cancel function which calls iSocket.CancelWrite()

    i hope it will work now

    thanks again

    Nuker

Similar Threads

  1. esock panic 14 , coms afte 4/5 transactions
    By saurbh_g in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-03-22, 06:25
  2. eSock panic 3
    By gsimberg in forum Bluetooth Technology
    Replies: 0
    Last Post: 2005-04-19, 09:25
  3. esock panic 17
    By tinmar in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2004-03-17, 08:37
  4. eSock panic 3
    By andreas84 in forum Bluetooth Technology
    Replies: 0
    Last Post: 2003-10-15, 15:39
  5. eSock panic 14 again
    By pa3ot in forum Bluetooth Technology
    Replies: 0
    Last Post: 2003-10-04, 12:50

Posting Permissions

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