curl-library
Re: Getting AccessViolationException: attempted to read/write protected memory
Date: Thu, 22 Sep 2011 17:13:31 +0400
Just posting the resolution to the "attempted to read/write protected
memory" problem. This might help other developers using libcurl from
.Net applications.
We were using LibCurlNet and LibCurlShim available from curl.haxx.se
which are basically C# and C++ wrappers for libcurl calls
respectively.
The issue was with openssl mutex callback functions. We were
registering the functions in curl_shim_initialize which is called
after curl_global_init. Hence the openssl initialization was happening
before callbacks got registered.
After moving the code to easy.c and handling openssl callbacks before
curl global initialization resolved the issue.
Thanks Daniel for the help and support.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-22