cURL / Mailing Lists / curl-library / Single Mail


RE: Crashing on curl_easy_cleanup(cur);

From: Ben Helleman <>
Date: Tue, 15 Oct 2002 08:41:46 -0400

Yes, I looked again at my project settings, and noticed that I was using
Debug Multithreaded DLL, after modifying this to Multithreaded DLL, my issue
with the curl_easy_cleanup(); has disappeared.

Solution: Project Settings -> C/C++ --> Use run-time library: -->
Multithreaded DLL.


-----Original Message-----
From: []
Sent: Tuesday, October 15, 2002 8:25 AM
Subject: Re: Crashing on curl_easy_cleanup(cur);

If on Windows and using curl as a dll, insure that your exe and curl are
built using the same runtime libs (e.g. all use mt debug dll, all use mt
dll, etc.) Any mismatch between components is a frequent cause of these
types of crashes.

Ben Helleman <>
Sent by:
10/15/2002 07:25 AM
Please respond to curl-library

        To: "''"
        Subject: Crashing on curl_easy_cleanup(cur);

Hi there, I've been having issues when trying to use curl's
curl_easy_cleanup(curl); What has been happening if I execute the
CURL *curl;
curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL, url); // url = "" for
curl_easy_cleanup(curl); //************************

the easy_cleanup(curl) crashes my execution. If I remove the
curl_easy_cleanup(curl); line the program runs fine. I thought that each
thread needs to clean itself up, so its best to call curl_easy_cleanup()
after each thread's turn.

Any suggestions what might be going on?

The above snippet of code is located in a function outside of main. In my
main I perform:
curl_global_init(CURL_GLOBAL_WIN32); and after all threads have joined I
a curl_global_cleanup();

The only thing that I think it might be is that debug version and release
version of libraries?


This email is sponsored by:ThinkGeek
Welcome to geek heaven.

This email is sponsored by:ThinkGeek
Welcome to geek heaven.

This email is sponsored by:ThinkGeek
Welcome to geek heaven.
Received on 2002-10-15