×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Nov 2004
    Location
    Mumbai - India
    Posts
    155

    SIP : After sending data on socket, program crashes

    hi friends

    In responce to invite Ack
    After estaiblishing SIP connection, socket connect etc.

    when client try to send "Ready" through sockets, program internally crashes.

    On debugging...pointer passes properly this function.

    void CSocketsWrite::IssueWriteL(HBufC8* aData)
    {
    if(aData)
    iMessageArray->AppendL(aData);

    if (!IsActive() && (iMessageArray->Count() > 0) )
    {
    iSocket.Write(*iMessageArray->At(0), iStatus);
    SetActive();
    }
    else
    {
    }
    }

    and goes internal

    and crashes internally with some 7C90...(in disassembly) and never reaches RunL().

    What could be reason ?

    FOR REFERENCE : I'm following chip-flip/ war-ship.


    Suraab

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    you are making asynchronous call. Are you sure that the buffer is valid for all the necessary time? The most likely cause of problems is that you delete the buffer immediatelly after calling this method.

Posting Permissions

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