cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [BUGS] curl_easy_perform and Dev C++ crash

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 24 Nov 2006 23:27:55 +0100 (CET)

On Fri, 24 Nov 2006, grz wrote:

> The program running correctly if the url is valid, if url is not valid the
> program crash on "res=curl_easy_perform(c);" function (segmentation fault).

segmentation fault on Windows?

> "GetFile(char *url,char *fileout)" download a file from "url" and create a
> other file "fileout" with the data of url file.
>
> For example is :
> GetFile("http://www.estelante.com/ressources/news.txt","news.txt");

This URL is "valid" in the sense that you get a fine response back (although a
404 status), and curl can get it just fine for me.

I'd guess that this problem is due to some badness in your own code.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-11-24