Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

RE: Unhandled exception when usingcurl_easy_perform()inVisualStudio2005 on Windows XP.

From: Xu Xiaogang-a19881 <>
Date: Wed, 4 Jun 2008 15:36:05 +0800

When using this function pure in C, and build with Visual Studio 2005 on Windows XP, it is OK. Everything can run correctly.
But, If using this function in C++, the exception will happen.

The same set of C++ code using libcurl in Cygwin, it is also OK.

Anybody has any idea about it?


-----Original Message-----
From: [] On Behalf Of Xu Xiaogang-a19881
Sent: 2008年6月3日 22:00
To: libcurl development
Subject: RE: Unhandled exception when usingcurl_easy_perform()inVisualStudio2005 on Windows XP.

Thanks for the information. I did use /MDd for code generation. When I change it to /MD, the unhandled exception is gone.
But, when I captured the packages sent by curl when I called libcurl to post some contents to a server, I did not find the content set via curl_easy_setopt (curl, CURLOPT_POSTFIELDS, ***).
I am not clear what is happening now. Do you have any idea?


-----Original Message-----
From: [] On Behalf Of Gisle Vanem
Sent: 2008年6月3日 17:43
To: libcurl development
Subject: Re: Unhandled exception when using curl_easy_perform()inVisualStudio2005 on Windows XP.

"Xu Xiaogang-a19881" <> wrote:

> New problem comes.
> This version of libcurl can work with HTTP GET, but if I use it to
> post some content to the server, it will still get the unhandled exception: "Unhandled exception at 0x77c478c0 in myspace.exe:
> 0xC0000005: Access violation reading location 0x00b7a000."

You're not giving enough details for us to help you. But this could happen if you compile/build using a different configuration than libcurl was built with. E.g. if you use "cl -MDd" in your app. and libcurl was built with "cl -MD", you are asking for trouble.

Received on 2008-06-04

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET