cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_init() failed within thread excution

From: Theodore H. Smith <delete_at_elfdata.com>
Date: Sat, 1 Nov 2008 19:22:53 +0000

On 1 Nov 2008, at 06:00, Meir Yanovich wrote:

> Hello all
> i have strange problem when i init cUrl with single threaded every
> thing is fine
> but when i start more threads each thread created new curl wrapper
> object
> in the part :
>
> CURL *m_pcurl;
> m_pcurl = curl_easy_init();

You need to call curl_easy_init from within the same thread that owns
the global curl thing. The global curl thing is created when you first
use curl_easy_init.

I think that means you can only access curl from one thread.

> its just failed , my question is how can i print some debug info to
> get any hints about why it crashes
> im using win xp with vs express
> Thanks allot

--
http://elfdata.com/plugin/
"String processing, done right"
Received on 2008-11-01