PDA

View Full Version : Data too big for QHttpResponseHeader



srohit24
17th August 2009, 11:10
Hi

I am using QHttpResponseHeader to recieve data from a website through a api call.

Now for only 1 particular api, which returns all the data from a account, which is quite big, I am getting a error from windows xp saying the

"Visual Studio Just In Time Debugger"

An unhandled win32 exception occurred in myprogram.exe [4044].....

My guess is that the data sent from the webiste is too big for the QHttpResponseHeader to handle.

Is there any other class that performs the same way as QHttpResponseHeader but handle more data?

this is where i am reading the response. Depending on the call, I am parsing the data.

void api_request::readData(const QHttpResponseHeader &resp)
{
if (resp.statusCode() != 200)
http.abort();
else
{

xml.addData(http.readAll());
}
}

yogeshgokul
17th August 2009, 11:16
My guess is that the data sent from the webiste is too big for the QHttpResponseHeader to handle.

No !
Your guess is wrong. This must be crashing by some other cause. Please elaborate your code. And do some error checking for content length.

srohit24
17th August 2009, 12:02
Thanks

Fixed it now. Was trying to assign values to variables when the complete data from the website was still being received.

nhs_0702
24th April 2010, 01:54
No !
Your guess is wrong. This must be crashing by some other cause. Please elaborate your code. And do some error checking for content length.

i dont know get content-length ,can you help me ?