cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: gethostbyname_thread: Access Violation

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 22 Aug 2005 10:53:25 +0200 (CEST)

On Mon, 22 Aug 2005, Igor Polyakov wrote:

> As I understand, libcurl creates additional thread to resolve host name on
> first calls to curl_multi_perform, but neither curl_easy_cleanup, nor
> curl_multi_cleanup functions do not terminate the thread.

Isn't that what Curl_destroy_thread_data() does? It is called when a
connection is disconnected.

> May be there is an incorrect use of libcurl API in this code, please point
> me, where ? Or is it a bug in this version of libcurl ?

Even if you'd use it wrongly, we shouldn't allow an access violation. But I
don't think you've done anything wrong here...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-08-22