Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Program crash at CActiveScheduler::Start()

2 replies · 6,665 views · Started 19 October 2004

Why does my application close down at the last given row below? (starting
the active scheduler):

iDataChunkCount = 0;
TUriParser8 uri;
uri.Parse(aUri);

RStringF method = iSess.StringPool().StringF(HTTP::EPOST,
RHTTPSession::GetTable());

iTrans = iSess.OpenTransactionL(uri, *iTransObs, method/*aMethod*/);
RHTTPHeaders hdr = iTrans.Request().GetHeaderCollection();

// Add headers appropriate to all methods
SetHeaderL(hdr, HTTP::EUserAgent, KUserAgent);

// Content type header
TBuf8<KMaxContentTypeSize> contTypeBuf;
_LIT(KTextHtml, "text/html"😉;
contTypeBuf.Copy(KTextHtml);
RStringF contTypeStr = iSess.StringPool().OpenFStringL(contTypeBuf);
THTTPHdrVal contType(contTypeStr);
hdr.SetFieldL(iSess.StringPool().StringF(HTTP::EContentType,
RHTTPSession::GetTable()), contType);
contTypeStr.Close();

MHTTPDataSupplier* dataSupplier = this;
iTrans.Request().SetBody(*dataSupplier);

iTrans.SubmitL(); //Submit the transaction

//Start the scheduler, once the transaction completes or is cancelled on an
error the scheduler
// will be stopped in the event handler
CActiveScheduler::Start();

Hello Sir,

I have same issue as i came to know about it by searching the thread.
I am making an HttpClient application on S60.
I am using CHttpExampleClient as given in Examples of
S60 2nd edition FP3 SDK.

I have code which request by submitting a transaction
& then after getting default response the cycle repeats.
But when server sends hdrs then program crashes at
CActiveSchduler::Start().

I am unable to find the solution.If anyone knows then please help.

With Thanks & Regards,
Parveen Bhatia.

Hi ..

I was developing httpclient in Carbide C++ and UIQ 3.x SDK .... Even i am facing the same problem . The program crashes at CActiveScheduler::Start() ... I do know wat was the reason .... could any one tell me ....

Thanks
Sundar