cURL / Mailing Lists / curl-library / Single Mail


Re: Problem using libcurl with Visual Studio

From: Daniel Stenberg <>
Date: Mon, 20 Oct 2003 21:54:13 +0200 (CEST)

On Mon, 20 Oct 2003, Giuliano Ippoliti wrote:

> < 200 Representation type is binary IMAGE.
> > STOR while.txt
> < 150 Sending file to member TXT in file WHILE in
> library VISITEUR.
> And now I obtain a "0xC0000005 Access violation"! Using the DOS prompt to
> upload the file with the standard commands I have no problem, so I suppose
> that the problem is in the code.

I think you've provided READDATA to the library without a READFUNCTION. In
Windows, you can't pass a struct/pointer from your application and have the
library read from it.

This is noted in the man page and if you don't do as documented, you get
access violations.

It might of course also be something entirelly different, you don't give us
many details to allow us any further analysis.

 Daniel Stenberg -- curl: been grokking URLs since 1998
This email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
Received on 2003-10-20