I'm working on software which downloads a file and shows transfer speed via an SDL window. My problem is that when I launch a download, the window is immediately identified by windows as a crashed program. As soon as the download is completed, everything is okay. My program didn't crash and I think that it's because it can't respond when it's downloading. Any ideas how to solve that?
PS: example of code which 'crashes' when performed:
curl_easy_setopt(curl, CURLOPT_URL, valeurs->URL);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, FALSE);
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, downloadData);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, file);
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);