In debug mode this gives an assertion failure in sendf.c. In release mode it just crashes. The problem doesn't happen if I comment out the CURLOPT_WRITEDATA call. I'm using Version 7.20.1 (14 April 2010). Here's an example app which illustrates the problem: #include "targetver.h"...