Discussion Board
SIP : After sending data on socket, program crashes
2005-02-18, 15:39
#1
Regular Contributor
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
Super Contributor
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
Forum Rules