cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
getinmemory.c sample crashes with TCHAR
I have been trying to download a file to a memory buffer, based on the
sample code provided in the libcurl package - getinmemory.c. It all works
fine for binaries and non-Unicode strings, but once I make the memory chunk
to be of type TCHAR (wchar_t in my application, which is unicode enabled),
it just crashes with AV under WriteMemoryCallback.
Without changing it to be TCHAR, I see no way of downloading Unicode text
files and reading/parsing them on the fly. Please let me know if there is a
way, or how to fix that AV described above.
Thanks in advance,
Received on 2006-11-12
These mail archives are generated by hypermail.
Page updated November 12, 2010.
File upload with ASP.NET
web site info