View Single Post
antman8969's Avatar
Posts: 64 | Thanked: 58 times | Joined on Jul 2010 @ United States
#10
Originally Posted by rooster13 View Post
Would be better if you post the part of code where the problem is.
Otherwise we r just guessin' here.

Also a short introduction about your program would be nice. What is it supposed to do etc.
source attached in this post

qtweather:
Weather application that pulls data from the National Weather Service. There is one QNetworkAccessManager in the mainwindow.h, and one per every dayperiod object.... of which there are 12. So 13 in total... and I have a feeling the problem lies there.

The application starts off by showing a dialog, which sends a request based on a zipcode. If the request is valid, then an xml file is returned and parsed, and then 12 more managers are created that send one request each to download the icons for the weather for that day.


If you comment out line 278 in mainwindow.cpp
Code:
QString temp(hiloList.at(i));
then it no longer crashes. I suppose it's due to an index out of bounds error, which is caused by the merging of two empty lists (line 187, the hiloList), then iterating up to 12, and reading, despite the list size probably being 0.

This just tells me that the information isn't being returned in the QNetworkReply... when I'm not sudo
Attached Files
File Type: zip qtweather-0.5.orig.zip (310.7 KB, 65 views)

Last edited by antman8969; 2011-02-21 at 19:56.