cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Access violation with multi threads

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 20 Nov 2002 10:05:24 +0100 (MET)

On Wed, 20 Nov 2002, Zhen Wang wrote:

> Thank you Daniel! I use curl version 7.10.1£¬ and I built the library uses
> VC++ 6.0 with /MDd parameter. I use WINDOWS XP and each thread does the
> same thing. It downloads a webpage from a website and extracts links in
> that page, and then follows these links to download another webpage. It
> does things like a webrobot, such as "Teleport pro". Each thread performs
> well with single thread mode but crash each time at the same location when
> it performs curl_easy_perform() at the first time.

Are you really using curl_easy_init() to get a unique and fresh curl handle
in each new thread?

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
Received on 2002-11-20