cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Progress callback crash on return and non-blocking Qs

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 15 Jun 2005 07:19:01 +0200 (CEST)

On Wed, 15 Jun 2005, Leigh Morresi wrote:

> Ok sorry i think i got it figured out, i just set the function that handles
> the callback for the progressupdate as being a local function of the source
> code rather than a member of the object.

Right. libcurl is plain C and it knows of no objects or similar.

> Still, how do i make all this non-blocking?

libcurl calls the function and you block it until you return from it. If you
need different behaviour, you should probably consider starting a second
thread or something. It is not something libcurl does for you anyhow.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-06-15