cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: FTP upload from NT.

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 4 Jul 2004 10:18:40 +0200 (CEST)

On Sun, 4 Jul 2004, Alexander Krasnostavsky wrote:

> I found that when libcurl compiled with _MT option, fread() try to lock
> the file:
> _lock_str(stream); /* lock stream */
>
> And I get "Access violation writing location 0x00000010" error.
> Does somebody have solution for it?

libcurl is built as a DLL and you pass a file handle to the lib from the app?
That is clearly documented to not work.

Work-arounds:

1. Link statically
2. Provide a read callback that does the reading

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-07-04

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET