cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: your mail

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 19 May 2007 11:39:05 -0700

On Sat, May 19, 2007 at 06:26:13PM +0000, Caner Bulut wrote:
> i have a problem.Below code when 1 and 2 lines blok,
> CURLOPT_NOPROGRESS works well.But i want to my own progress
> function.But when i open line 1 and 2,and in progress_callback to
> write some info,the error 42 occur.It means that
> callback_function_aborted.I dont understand why it occurs.
>
>
> int progress_callback( double *clientp,
  ^^^
> double t,
> double d,
> double ultotal,
> double ulnow)
> {
> printf("hello \n");
> }

You aren't returning any value from your callback. Your program is at the
mercy of whatever value happens to be sitting in the registers upon return.
You ought to enable some compiler warnings to catch things like this
(e.g. -Wall using gcc).

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-05-19