I'm having some problems downloading a stream from a website..
The code I'm using currently, and I've tried a few ways, is:
wxHTTP *http_file = new wxHTTP;
if (http_file->Connect("http://d-m-s.sourceforge.net")) {
//Connected, get stream
wxInputStream *instream = http_file->GetInputStream("/index.html");
if (!instream) {
wxMessageBox("Could not download file");
}
delete instream;
}
But when the code get's to the "GetInputStream" call, it sends my CPU to 100%
and just locks up..
Has anyone had this problem?
Dave