cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Writing cURL response to a file or a string in C++

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Mon, 04 Mar 2013 17:49:06 +0100

"Jason T. Slack-Moehrle" <slackmoehrle_at_gmail.com> wrote:

> curl_easy_setopt(curl, CURLOPT_WRITEDATA, &stream);

...

> I seem to be crashing at: stream->write(ptr, count);
>
> with simply a bus error

How is 'stream' initialiased then? I.e. what is 'stream->write' set to?
Doesn't look like something standard to me.

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-03-04