Is it a divide by zero crash?  Look what happens in your code when utotal is
0.

On Sep 13, 2011 1:06 AM, "Oleksiy" <patriot_of...@ukr.net> wrote:

 int ProgressShow(int (*fun)(double data), double dltotal, double dlnow,
double ultotal, double ulnow)
{
   printf("%f / %f (%g %%)\n", ulnow, ultotal, ulnow*100.0/ultotal);
   if(ulnow*100>50)
        return 1;
   return 0;
}


int main()

{

  //to use this callback

curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0);//must be to use progress
cakkback
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, ProgressShow);//callback
function for displaying uploading progress
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, fun);//data sent to the
progress callback as a first parameter

}


When ProgressShow  just returns 0 everything works fine. With this program
crashed, but I receive the right output to the Eclipse console after crash.
I'm sending a file with post request.

--- Оригінальне повідомлення ---
Від кого: " Jeff Pohlmeyer" <yetanotherg...@gmail.com>
Кому: " libcurl development" <curl-library@cool.haxx.se>
Дата: 12 вересня 2011, 21:22:40
Тема: Re: Cancel request in process





>
> 2011/9/12 Oleksiy <patriot_of...@ukr.net>:
>
> > When I return from curl_progress_callback n...

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to