curl-library
Getting AccessViolationException: attempted to read/write protected memory
Date: Tue, 13 Sep 2011 12:11:51 +0400
Hi,
I am getting "attempted to read/write protected memory" while doing multiple
upload/download from my C# application. All projects are built targeted to
.Net framework 3.5 and platform target as x86. I am also using LibCurlNet
and LibCurlShim to send data to libcurl.
It is a multithreaded application with upload/download
having separate threads. After a lot of file transfers, I start getting this
issue usually during perform or easy cleanup. Easy and Slist objects are
created for each file transfer and freed once the operation is complete.
If I change upload/download to single thread, this issue does not occur.
Also I tried to reuse easy objects by calling reset instead of cleanup after
each transfer, but after first read/write callback the functions are not
getting called. The perform output is still curle_ok.
Can anyone please explain what might be going wrong?
Regards,
Chai
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-13