Re: cURL bug -- Segmentation Fault when timeout is 1 second
Date: Wed, 04 Feb 2009 07:08:32 +0100
> ... * snip *
>> string buffer;
>> curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer);
> .... * snip *
Daniel Marschall <info_at_daniel-marschall.de> wrote:
> No, I cannot see what could be wrong there. I call the URL and wait 2 seconds.
At first look it seemed you were using a variable on stack in a
global scope (while sleep() is running). But as Daniel saids, you
cannot pass a 'std::string' to CURLOPT_WRITEDATA.
Received on 2009-02-04