Has anyone tried to compile and run source code from the article ? I've tried it both on MacOS and Windows but result is the same - half CPU time and constant memory growth
I've tried to use this source like this:
Qt Code:
  1. int main(int argc, char **argv)
  2. {
  3. QCoreApplication app(argc, argv);
  4.  
  5. QString str = "http://ua.fishki.net/picsw/122007/21/video/switch_on.wmv";
  6. QUrl url(str);
  7.  
  8. RcTcpSocket socket;
  9. QHttpRequestHeader header("GET", str);
  10. QHttp http;
  11. QFile file("Rate.wmv");
  12. http.setSocket(&socket);
  13. http.setHost(url.host());
  14. http.get(url.path(), &file);
  15.  
  16. RateController controller;
  17. controller.setUploadLimit(512);
  18. controller.setDownloadLimit(2048);
  19. controller.addSocket(&socket);
  20. return app.exec();
  21. }
To copy to clipboard, switch view to plain text mode