cURL / Mailing Lists / curl-library / Single Mail

curl-library

Fw: Crash in libcurl?

From: Tomasz Cybulski <cbull_at_wp.pl>
Date: Wed, 20 Dec 2006 10:31:11 +0100

Here is a very simple code that cause crash for me:

#include "curl/curl.h"

#include "curl/easy.h"

int _tmain(int argc, _TCHAR* argv[])
{
    CURL *curlHandle = curl_easy_init();
    CURLM *curlMultiHandle = curl_multi_init();
    curl_easy_setopt(curlHandle, CURLOPT_URL, "http://www.onet.pl");

    curl_multi_add_handle(curlMultiHandle, curlHandle);

    int runningNumber = 0;

    while(CURLM_CALL_MULTI_PERFORM ==
        curl_multi_perform(curlMultiHandle, &runningNumber));

    curl_multi_remove_handle(curlMultiHandle, curlHandle);

    Sleep(100);

    while(true);

    return 0;

}
 
 
 
 I have compiled libcurl as dll.
 
 Tomasz
Received on 2006-12-20