cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: calling function twice causes crash

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 6 Jul 2006 14:10:03 -0700

On Thu, Jul 06, 2006 at 02:38:40PM -0500, Shaun Dawson wrote:
> My guess is that it is because you are calling curl_global_init more than
> once.

There could really be a matching call to curl_global_cleanup at the
end which would make it work, although since you're calling your function
more than once you should really pull out the curl_global_init call out of
the function and just call it once elsewhere. libcurl 7.15.2 added
reference calling for these initialization functions so the program
should actually work as-is with a new libcurl (but that doesn't make
it correct).

>>> Dan

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