I am writing an .CSY .
Problem description is as follows .
There is a class derived from CPort . Whenver a client to Cport ( in this case hci.dll) is issuing a request to Write ( i.e. RComm::Write) , then StartWrite of my derived class( from CPORT) is called .
in StartWrite i am doing an IPCREAD() to get data.
In doing IPCRead i am getting a Panic ( Commserver panic 4 i.e. KErrBadDescriptor).
Code is attached here
if(iSendBuf->Length() < length)
RDebug::Print(_L("[VSP] ProcessWrite Reallocating to len = %d"),length);
TInt res = KErrNone;
HBufC8* tmpBuffer = NULL;
TRAP(res, tmpBuffer = iSendBuf->ReAllocL(length));
if (tmpBuffer == NULL || res != KErrNone)
RDebug::Printf("[VSP] CCodRealPort::RunL , no memory available ");
IPCRead(aClientBuffer, iSendBufPtr); }
iSendBuf is an HBufC* and iSendBufPtr as an TPtr8 type .
Both of them are members of class CcodRealPort .
Also this problem is not persistent . A very intersting and probably confusing observation is :- This problem occurs only when we press keypad .
I am using Symbian OS 9.3 !! Please Help.