dimanche 5 mars 2017

Failed to start QThread when using QNetworkManager

I'm currently trying to make a software that downloads a lot of files from Google Drive. Downloading is currently not a problem.

Nevertheless, I encounter an issue when launching 500+ simultaneous downloads. I use a slightly modified version of this tutorial : http://ift.tt/2lgM8lk.

The issue is "QThread::start: Failed to create thread ()" when reaching about the 500th download. I tried to limit the number of downloads which run at the same time - but I always get the same issue. Besides, I tried to delete every downloader when finishing its task - it did nothing else than crashing the program ;)

I think that it is coming from the number of threads allowed for an only process, but I'm not able to solve it !

Does anyone have an idea that could help me ?

Thank you !

Aucun commentaire:

Enregistrer un commentaire