cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [bug report] Windows multithreading problem - couldn't resolve host

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sun, 22 Feb 2009 13:28:21 -0800

On Sun, Feb 22, 2009 at 07:50:33PM +0100, Daniel Stenberg wrote:
> Here's yet another windows-specific bug report that I need help to sort
> out. I'm under the impression lots of Windows apps already use libcurl
> fine in multithread situations so I don't quite understand why this guy
> has a problem all of a sudden...

There's no call to curl_global_init() in the provided code, which means that
two of the three threads start running before the Winsock init completes.

>>> Dan

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