cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Memory Access error

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 12 May 2003 13:31:31 +0200 (CEST)

On Sun, 11 May 2003, Jared McIntyre wrote:

> We're writing code against a version of libcurl 7.10.3 we built for windows
> (couldn't get 7.10.4 to build).

Add the lib/share.c file, and it'll build! It's a bug in the release files,
fixed in the next release...

> Our ftp upload code is running into a memory exception in the fread
> function on the _lock_str(stream) call. I'm not sure what we're doing
> wrong.

Are you using libcurl as a DLL? If so, then the explanation is that Windows
doesn't allow data to be passed between an application and a DLL, like that.
You need to specify your own read callback instead of relying on the internal
fread().

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Received on 2003-05-12