0

i am able to read data during debug time ,but when i perform write and read ,during run time ,i am unable to read data during run time

IssueRead()
{

    delete iBuffer1;

    iBuffer1 = NULL;

    iBuffer1 = HBufC8::NewL(1000);

    TPtr8 bufferPtr2(iBuffer1->Des());  


    iEchoSocket->Recv(bufferPtr2,0,iStatus,iLength);    

    //iEchoSocket->RecvOneOrMore(bufferPtr2,0,iStatus,iLength);


    SetActive();

}

i am using three active object for connect,read and write

laalto
  • 150,114
  • 66
  • 286
  • 303
rahulm
  • 23
  • 3

2 Answers2

2

bufferPtr2 goes out of scope after SetActive, it needs to live until RunL is called. Common Symbian descriptor misstake.

Ola
  • 722
  • 4
  • 9
0

I am not sure what exactly the problem was during the run time. I guess that did you check out the socket connection as well as a handshake protocol before the communication is established ? you were using the three active objects for communications, did you synchronize those objects during reading/writing ?

I hope it helps.

Tiger.

Tiger
  • 507
  • 1
  • 6
  • 16
  • yes i have made symchronisation properly even it is reading data properly during debug time – rahulm Jul 07 '09 at 07:23