Hi friends,
I am doing an application where I am sending data to the server till IssueHTTPPostL, my application is working properly but after that it is crashing on OverallDatasize function. Here is my code for IssueHTTPPostL & overalldatasize.Code:SetupConnectionL(); // Parse string to URI TUriParser8 uri; uri.Parse(aUri); // Copy data to be posted into member variable; iPostData is used later in // methods inherited from MHTTPDataSupplier. delete iPostData; iPostData = aBody.AllocL(); //code checking for number of active connections. TBool CheckactiveConn = EFalse; CheckactiveConn = AnyActiveConnectionsL(); // Get request method string for HTTP POST RStringF method = iSession.StringPool().StringF(HTTP::EPOST, RHTTPSession::GetTable()); // Open transaction with previous method and parsed uri. This class will // receive transaction events in MHFRunL and MHFRunError. iTransaction = iSession.OpenTransactionL(uri, *this, method); // content type. RHTTPHeaders hdr = iTransaction.Request().GetHeaderCollection(); SetHeaderL(hdr, HTTP::EUserAgent, KUserAgent); SetHeaderL(hdr, HTTP::EAccept, KAccept); SetHeaderL(hdr, HTTP::EContentType, aContentType); // Set this class as an data supplier. Inherited MHTTPDataSupplier methods // are called when framework needs to send body data. MHTTPDataSupplier* dataSupplier = this; iTransaction.Request().SetBody(*dataSupplier); // Submit the transaction. After this the framework will give transaction // events via MHFRunL and MHFRunError. iTransaction.SubmitL(); iRunning = ETrue; _LIT(KConnecting,"Connecting..."); iObserver.ClientEvent(KConnecting);I have used these two functions. If anybody knows why immediately after completion of IssueHTTPPostL control is coming to Overalldatasize.Code:TInt CGPRSEngine::OverallDataSize() { if(iPostData) { return iPostData->Length(); } else { return KErrNotFound ; } }
Thanks in advance.
Regards,



