Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Necessity of setting CURLOPT_WRITEFUNCTION with Win32 DLL
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: John Scott via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 12 Jul 2022 23:37:10 +0000
Hi libcurl folks,
The CURLOPT_WRITEDATA man page says
> If you are using libcurl as a win32 DLL, you MUST use a
> CURLOPT_WRITEFUNCTION if you set this option or you will experience
> crashes.
I was curious to investigate why this happens, what the cause of the
crashes is. However, with curl 7.84.0 I'm unable to reproduce this
issue. I've cross-built libcurl using the MinGW-w64 toolchain provided
by Debian Testing and tested the x86_64 binary under Wine, and it seems
to work just fine without setting CURLOPT_WRITEFUNCTION. I'm certain
that my test program is dynamically linked.
Is this documentation up-to-date, and if so (primarily for my
curiosity's sake) why does the crash happen?
Thank you,
John
Received on 2022-07-13
Date: Tue, 12 Jul 2022 23:37:10 +0000
Hi libcurl folks,
The CURLOPT_WRITEDATA man page says
> If you are using libcurl as a win32 DLL, you MUST use a
> CURLOPT_WRITEFUNCTION if you set this option or you will experience
> crashes.
I was curious to investigate why this happens, what the cause of the
crashes is. However, with curl 7.84.0 I'm unable to reproduce this
issue. I've cross-built libcurl using the MinGW-w64 toolchain provided
by Debian Testing and tested the x86_64 binary under Wine, and it seems
to work just fine without setting CURLOPT_WRITEFUNCTION. I'm certain
that my test program is dynamically linked.
Is this documentation up-to-date, and if so (primarily for my
curiosity's sake) why does the crash happen?
Thank you,
John
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html
- application/pgp-signature attachment: This is a digitally signed message part