cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with PROGRESSFUNCTION

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 11 Mar 2002 10:16:35 +0100 (MET)

On Sat, 9 Mar 2002 kapheine_at_hypa.net wrote:

> > It would help a lot if you set a break-point in progress.c:300 and check
> > what happens when that source line is reached. Or why it isn't reached.
>
> I've only used the very basic functions of gdb so if you could tell me how
> to set a breakpoint for a library that is linked to, that'd be helpful. I
> tried just putting an fprintf(stderr, ...) inside of the function at line
> 300, and nothing was printed, but I'd be happy to do better tests and try
> to trace where the problem is if you could help me with how to do the
> breakpoints. Thanks for your help.

Did you set CURLOPT_NOPROGRESS to FALSE?

You should, as otherwise it won't call your progress function... we should
probably make that option get set like that automaticly when PROGRESSFUNCTION
is set...

(Yes, the option CURLOPT_NOPROGRESS is weirdly negated.)

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-03-11