cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: libcurl used in multiple components of an application

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 26 Mar 2009 09:29:43 +0100 (CET)

On Thu, 26 Mar 2009, centrio_at_gmail.com wrote:

> I am developing an application which uses more than one libs. These
> individual libs are developed using libcurl. They handle different http
> requests. One uses easy handle and other lib uses multi handle. I want to
> know, if my main application will face any problems since I am using libcurl
> in more than one components. Also in both the individual libs, I have not
> performed global_init(). Is it still a problem to use curl in both libs and
> then integrate it with main application?

This is really simple: if you use more than one thread you MUST use
curl_global_init(). Period. No discussion.

Doing it differently will lead to sad faces and unhappiness at some point.
Now, or later.

-- 
  / daniel.haxx.se
Received on 2009-03-26

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET