curl-library
Re: progress callback not working?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 28 Jan 2002 11:16:49 +0100 (MET)
Date: Mon, 28 Jan 2002 11:16:49 +0100 (MET)
On Sat, 26 Jan 2002, Finlay Dobbie wrote:
> I can't get the progress callback to work... The file downloads OK, but
> myprogress never gets called. What am I doing wrong?
> int myprogress (void *clientp,
> size_t dltotal,
> size_t dlnow,
> size_t ultotal,
> size_t ulnow)
> curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, myprogress);
> curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, progressIndicator);
This looks correct.
Can you set a break-point in Curl_pgrsUpdate() and single-step through the
function and see why it doesn't call your function?
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-01-28